why are these std::set iterators of different type when compiling with -D_GLIBCXX_DEBUG
Dennis Luehring
dl.soluz@gmx.net
Wed Jul 24 10:37:50 GMT 2024
using latest gcc/STL
---------
#include <set>
using int_set1 = std::set<int, std::greater<int>>;
using int_set2 = std::set<int>;
static_assert(std::is_same<int_set1::iterator, int_set2::iterator>());
---------
the two iterators are equal when not using _GLIBCXX_DEBUG but become
different when using the define?
More information about the Gcc
mailing list