diff --git a/stl/inc/algorithm b/stl/inc/algorithm index 9e0d2458f7d..d9422ad4140 100644 --- a/stl/inc/algorithm +++ b/stl/inc/algorithm @@ -94,16 +94,11 @@ struct _Optimistic_temporary_buffer { // temporary storage with _alloca-like att #ifdef __cpp_lib_concepts namespace ranges { -#ifdef __clang__ -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunknown-attributes" -#endif // __clang__ - // STRUCT TEMPLATE in_fun_result template struct in_fun_result { - [[no_unique_address]] _In in; - [[no_unique_address]] _Fun fun; + /* [[no_unique_address]] */ _In in; + /* [[no_unique_address]] */ _Fun fun; template <_Convertible_from _IIn, _Convertible_from _FFun> constexpr operator in_fun_result<_IIn, _FFun>() const& { @@ -119,8 +114,8 @@ namespace ranges { // STRUCT TEMPLATE in_in_result template struct in_in_result { - [[no_unique_address]] _In1 in1; - [[no_unique_address]] _In2 in2; + /* [[no_unique_address]] */ _In1 in1; + /* [[no_unique_address]] */ _In2 in2; template <_Convertible_from _IIn1, _Convertible_from _IIn2> constexpr operator in_in_result<_IIn1, _IIn2>() const& { @@ -136,9 +131,9 @@ namespace ranges { // STRUCT TEMPLATE in_in_out_result template struct in_in_out_result { - [[no_unique_address]] _In1 in1; - [[no_unique_address]] _In2 in2; - [[no_unique_address]] _Out out; + /* [[no_unique_address]] */ _In1 in1; + /* [[no_unique_address]] */ _In2 in2; + /* [[no_unique_address]] */ _Out out; template <_Convertible_from _IIn1, _Convertible_from _IIn2, _Convertible_from _OOut> @@ -155,9 +150,9 @@ namespace ranges { // STRUCT TEMPLATE in_out_out_result template struct in_out_out_result { - [[no_unique_address]] _In in; - [[no_unique_address]] _Out1 out1; - [[no_unique_address]] _Out2 out2; + /* [[no_unique_address]] */ _In in; + /* [[no_unique_address]] */ _Out1 out1; + /* [[no_unique_address]] */ _Out2 out2; template <_Convertible_from _IIn, _Convertible_from _OOut1, _Convertible_from _OOut2> @@ -174,8 +169,8 @@ namespace ranges { // STRUCT TEMPLATE min_max_result template struct min_max_result { - [[no_unique_address]] _Ty min; - [[no_unique_address]] _Ty max; + /* [[no_unique_address]] */ _Ty min; + /* [[no_unique_address]] */ _Ty max; template <_Convertible_from _Ty2> constexpr operator min_max_result<_Ty2>() const& { @@ -191,7 +186,7 @@ namespace ranges { // STRUCT TEMPLATE in_found_result template struct in_found_result { - [[no_unique_address]] _In in; + /* [[no_unique_address]] */ _In in; bool found; template <_Convertible_from _IIn> @@ -291,10 +286,6 @@ namespace ranges { return _RANGES next(_Mid, _Uend(_Range)); } } - -#ifdef __clang__ -#pragma clang diagnostic pop -#endif // __clang__ } // namespace ranges #endif // __cpp_lib_concepts diff --git a/stl/inc/xmemory b/stl/inc/xmemory index 7ad649cf512..61482e6f834 100644 --- a/stl/inc/xmemory +++ b/stl/inc/xmemory @@ -1447,16 +1447,11 @@ namespace ranges { template concept _Convertible_from = convertible_to<_From, _To>; -#ifdef __clang__ -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunknown-attributes" -#endif // __clang__ - // STRUCT TEMPLATE in_out_result template struct in_out_result { - [[no_unique_address]] _In in; - [[no_unique_address]] _Out out; + /* [[no_unique_address]] */ _In in; + /* [[no_unique_address]] */ _Out out; template <_Convertible_from _IIn, _Convertible_from _OOut> constexpr operator in_out_result<_IIn, _OOut>() const& { @@ -1468,10 +1463,6 @@ namespace ranges { return {_STD move(in), _STD move(out)}; } }; - -#ifdef __clang__ -#pragma clang diagnostic pop -#endif // __clang__ } // namespace ranges #endif // __cpp_lib_concepts