You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when built with clang++ -I /opt/homebrew/include -I /opt/homebrew/opt/icu4c/include -std=c++17 test.cpp -o test
fails with
In file included from test.cpp:1:
In file included from /opt/homebrew/include/boost/regex.hpp:34:
In file included from /opt/homebrew/include/boost/regex/v5/regex.hpp:29:
In file included from /opt/homebrew/include/boost/regex/v5/regex_workaround.hpp:29:
In file included from /opt/homebrew/include/boost/throw_exception.hpp:21:
In file included from /opt/homebrew/include/boost/exception/exception.hpp:9:
In file included from /opt/homebrew/include/boost/assert/source_location.hpp:13:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:821:42: error: implicit instantiation of undefined template 'std::char_traits<int>'
821 | static_assert(is_same<_CharT, typename traits_type::char_type>::value,
| ^
test.cpp:7:20: note: in instantiation of template class 'std::basic_string<int>' requested here
7 | auto pattern = re.str(); // may fail
| ^
on latest AppleClang 17.0.0.17000013.
According to MS STL issue #4935, libc++ 19.0 has restricted instantiations for std::char_traits<charT> to the standard character types char, wchar_t, char8_t, char16_t, char32_t, which lets boost::u32regex::str() fail here:
This source
when built with
clang++ -I /opt/homebrew/include -I /opt/homebrew/opt/icu4c/include -std=c++17 test.cpp -o test
fails with
on latest AppleClang 17.0.0.17000013.
According to MS STL issue #4935, libc++ 19.0 has restricted instantiations for
std::char_traits<charT>
to the standard character typeschar
,wchar_t
,char8_t
,char16_t
,char32_t
, which letsboost::u32regex::str()
fail here:Tested with boost v1.87 and ICU 77 in Xcode 16.3 / AppleClang 17.0.0
The text was updated successfully, but these errors were encountered: