Uh oh!
There was an error while loading. Please reload this page.
Inheriting std::iterator is deprecated in C++17 - #101
Conversation
463d2c2 to
50709e6Comparedavydden
commented
Mar 31, 2018
this should also fix https://svn.boost.org/trac10/ticket/13505 @ericniebler@Belcourt ping. |
davydden
commented
Apr 4, 2018
@DanielaE please rebase and see #104 (comment) |
50709e6 to
2e07dadCompareDanielaE
commented
Apr 4, 2018
Done 😄 |
| { // replace with iterator_adaptor implementation -JGS | ||
| typedef std::bidirectional_iterator_tag iterator_category; | ||
| typedef ArrayBinaryTreeNode value_type; | ||
| typedef size_type difference_type; |
There was a problem hiding this comment.
typedef ArrayBinaryTreeNode::difference_type difference_type;
typedef ArrayBinaryTreeNode* pointer;
would be more readable?
Boost's iterator.hpp is deprecated, too. Therefore get rid of all of that and replace inheritance by lifting std::iterator's members into the derived class. Signed-off-by: Daniela Engert <dani@ngrt.de>
2e07dad to
93cfa18Compareanadon
commented
Aug 31, 2018
I'm helping out with the PR backlog. Looks like you have a code change. I need to look into how this will affect backwards compatibility with C++ standards. This is to let you know and help me prioritize PR's. |
DanielaE
commented
Aug 31, 2018
It doesn't change it in any respect. |
anadon
commented
Aug 31, 2018
It uses tags/traits, which are not something necessarily safe for C++03. I'm going to do some additional testing to satisfy myself that this is either a safe change, or going to be pushed off. |
DanielaE
commented
Sep 1, 2018
Well, no - it does not. |
anadon
commented
Sep 1, 2018
OK, I'm mixing up 2a/2z stuff with 03. |
DanielaE
commented
Sep 1, 2018
Graph is one of the 5 last users of boost::iterator, the empty shell around std::iterator which itself is deprecated in C++17 http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0174r2.html#2.1 (with all it's consequences) and about to be removed from the language. |
jzmaddock
commented
Oct 12, 2018
Ooops, that reference was to the wrong PR :( |
anadon
commented
Oct 12, 2018
@jzmaddock Can you trigger a build on this? |
jzmaddock
commented
Oct 12, 2018
Closing and re-opening to trigger a CI build. |
jzmaddock
commented
Oct 14, 2018
Looks good to me, but I'll wait for Appveyor to catch up before merging... |
anadon
commented
Oct 15, 2018
@jzmaddock All clear. |
Boost's iterator.hpp is deprecated, too. Therefore get rid of all of that and replace inheritance by lifting std::iterator's members into the derived class.
Signed-off-by: Daniela Engert dani@ngrt.de