Using std::iterator as base class is deprecated in C++17, causes warnings in MSVC++
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 74/100
Research direction
Inspect include/boost/statechart/state_machine.hpp around line 359, where std::iterator is used, and compare the related Boost.Utility issue for the established migration approach. Build the project with MSVC++ in C++17 mode and verify that the deprecation warning no longer requires _SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING.
Written by the indexing model from the issue text.
Description
The following code requires an explicit macro to suppress a warning to be defined when compiling with MSVC++:
Adding _SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING solves the problem as a workaround. Other Boost libraries have fixed this issue in the past, for example: https://github.com/boostorg/utility/issues/34
Can provide PR if needed.
Background info:
https://www.fluentcpp.com/2018/05/08/std-iterator-deprecated/
- Dominant language
- C++
- Stars
- 32
- Forks
- 43
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from boostorg/statechart
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
boostorg/statechart#25 ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
boostorg/statechart#24 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
boostorg/statechart#23 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
boostorg/statechart#22 · 6 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 50/100
boostorg/statechart#21 ·
All issues in boostorg/statechart
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·