Files
Ruijie Shi b932e67fc8 Define BOOST_NO_INTRINSIC_WCHAR_T for clang-cl with non-native wchar_t
When clang targets MSVC compatibility (clang-cl, so _MSC_VER is defined) and
is built with /Zc:wchar_t- , wchar_t is an alias for unsigned short rather than
a distinct intrinsic type, and _NATIVE_WCHAR_T_DEFINED is not defined.

In that configuration Boost emits a separate is_integral<wchar_t> (and related
is_signed/is_unsigned/integer_traits/... ) specialization that collides with the
unsigned short one, producing errors such as:
    redefinition of 'is_integral<unsigned short>'

visualc.hpp already guards against this by defining BOOST_NO_INTRINSIC_WCHAR_T
when _NATIVE_WCHAR_T_DEFINED is absent; clang.hpp was missing the equivalent
guard. Mirror the visualc.hpp behaviour here. The guard is scoped to _MSC_VER so
it is a no-op for native-wchar_t builds and for non-MSVC clang targets.
2026-07-01 11:16:00 -07:00
..
2018-01-10 15:27:31 +00:00
2022-12-30 20:35:22 +03:00
2026-04-22 11:07:02 -07:00