Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated std::iterator, fix iterator types #4062

Merged
merged 2 commits into from
Dec 11, 2023

Conversation

povik
Copy link
Member

@povik povik commented Dec 9, 2023

No description provided.

@povik povik changed the title Remove deprecated std::iterator usage, fix some iterator types Remove deprecated std::iterator, fix iterator types Dec 9, 2023
povik added 2 commits December 9, 2023 19:01
`std::iterator` has been deprecated in C++17. Yosys is being compiled
against the C++11 standard but plugins can opt to compile against a
newer one. To silence some deprecation warnings when those plugins are
being compiled, replace the `std::iterator` inheritance with the
equivalent type declarations.
When we are iterating over a `SigSpec`, the visited values will be of
type `SigBit` (as is the return type of `operator*()`). Account for that
in the publicly declared types.
@jix jix merged commit fe686e7 into YosysHQ:master Dec 11, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants