Re: libstdc++: std::iterator is deprecated since C++17

2020-10-20 Thread Jonathan Wakely via Gcc-patches
Patches for libstdc++ need to be sent to both the gcc-patches list and libstdc++ list, or they will be ignored. Removing the std::iterator base classes is an ABI break, so not acceptable. std::iterator is deprecated, but that doesn't the library can't use it. Even after it gets removed, we can co

Re: libstdc++: std::iterator is deprecated since C++17

2020-10-08 Thread Andreas Schwab
On Okt 08 2020, korel ka via Gcc-patches wrote: > diff --git a/libstdc++-v3/include/bits/stl_iterator.h > b/libstdc++-v3/include/bits/stl_iterator.h > index 2259f7c..13d5dbb 100644 > --- a/libstdc++-v3/include/bits/stl_iterator.h > +++ b/libstdc++-v3/include/bits/stl_iterator.h > @@ -625,8 +650,2

libstdc++: std::iterator is deprecated since C++17

2020-10-08 Thread korel ka via Gcc-patches
std::iterator considered as deprecated since C++17 and shouldn't be in use. This patch marks std::iterator as deprecated using deprecated attribute, and replace its usages with the required member types inside each class. libstdc++-v3/include/bits/ChangeLog: stl_iterator_base_types.h: Add