ericniebler / range-v3

Range library for C++14/17/20, basis for C++20's std::ranges
Other
4.06k stars 437 forks source link

Error compiling on macOS using new Xcode 13.3 #1692

Closed jmelas closed 2 years ago

jmelas commented 2 years ago

New Xcode 13.3 uses new macOS SDK 12.3. Error compiling range-v3 in file include/std/associated_types.hpp line 270:

#elif defined(_LIBCPP_VERSION)
        template<typename I, bool B>
        char (
            &is_std_iterator_traits_specialized_impl_(std::__iterator_traits<I, B> *))[2];
        template<typename I>
        char is_std_iterator_traits_specialized_impl_(void *);
#elif defined(_MSVC_STL_VERSION)

Error message: Too many template arguments for class template '__iterator_traits' This means that the bool B template argument needs to be removed!

jmelas commented 2 years ago

_LIBCPP_VERSION in macOS 12.3 SDK is now 13000

jmelas commented 2 years ago

I see it's fixed on master! Thanks! Closing.