diff --git a/stl/inc/xtr1common b/stl/inc/xtr1common index 18053e59d7..f9b5c8c4cf 100644 --- a/stl/inc/xtr1common +++ b/stl/inc/xtr1common @@ -168,7 +168,11 @@ _INLINE_VAR constexpr bool disjunction_v = disjunction<_Traits...>::value; template _INLINE_VAR constexpr bool _Is_any_of_v = // true if and only if _Ty is in _Types +#if _HAS_CXX17 + (is_same_v<_Ty, _Types> || ...); +#else // ^^^ _HAS_CXX17 / !_HAS_CXX17 vvv disjunction_v...>; +#endif // _HAS_CXX17 _NODISCARD constexpr bool _Is_constant_evaluated() noexcept { // Internal function for any standard mode return __builtin_is_constant_evaluated();