boostorg / container

STL-like containers from Boost
http://www.boost.org/libs/container/
Boost Software License 1.0
101 stars 113 forks source link

boost flat_map 1.78.0 does not compile with ranges-v3 0.11.0 #205

Closed AlexandreBossard closed 2 years ago

AlexandreBossard commented 2 years ago

I have just upgrade to boost 1.78.0 and I have compilation errors with ranges. It seems that boost flat_map defines std::iterator_contiguous_tag as an iterator_concept. This tag does not exist in C++17 and is forward declared by boost, which is pick-up by range and failed for I suppose lack or proper definition.

the godbolt

AlexandreBossard commented 2 years ago

seams to be related to #195

igaztanaga commented 2 years ago

Duplicate of #195.

I've just checked that with the mentioned commits on Boost.Move and Boost.Container makes your example well-defined with GCC 11 and Clang 13 in C++17 and C++20 modes.