From: Jonathan Wakely Date: Tue, 9 Sep 2025 12:57:54 +0000 (+0100) Subject: libstdc++: Rename _CwFixedValue::_S_type member X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=39c003c0ecd4fcaf801e923b85e921327fd0d5d3;p=thirdparty%2Fgcc.git libstdc++: Rename _CwFixedValue::_S_type member Rename _S_type to __type as it's not a static member. Also rename _Tp to _Xv because it's not a type. libstdc++-v3/ChangeLog: * include/std/type_traits (_CwFixedValue::_S_type): Rename to __type. (constant_wrapper): Rename template parameter in declaration to match later definition. --- diff --git a/libstdc++-v3/include/std/type_traits b/libstdc++-v3/include/std/type_traits index 42a1e7f1732..77ebb7e2c2f 100644 --- a/libstdc++-v3/include/std/type_traits +++ b/libstdc++-v3/include/std/type_traits @@ -4307,19 +4307,19 @@ template template struct _CwFixedValue { - using _S_type = _Tp; + using __type = _Tp; constexpr - _CwFixedValue(_S_type __v) noexcept + _CwFixedValue(__type __v) noexcept : _M_data(__v) { } - _S_type _M_data; + __type _M_data; }; template struct _CwFixedValue<_Tp[_Extent]> { - using _S_type = _Tp[_Extent]; + using __type = _Tp[_Extent]; constexpr _CwFixedValue(_Tp (&__arr)[_Extent]) noexcept @@ -4338,8 +4338,8 @@ template template _CwFixedValue(_Tp (&)[_Extent]) -> _CwFixedValue<_Tp[_Extent]>; - template<_CwFixedValue _Tp, - typename = typename decltype(_CwFixedValue(_Tp))::_S_type> + template<_CwFixedValue _Xv, + typename = typename decltype(_CwFixedValue(_Xv))::__type> struct constant_wrapper; template @@ -4653,7 +4653,7 @@ template { static constexpr const auto& value = _Xv._M_data; using type = constant_wrapper; - using value_type = typename decltype(_Xv)::_S_type; + using value_type = typename decltype(_Xv)::__type; template<_ConstExprParam _Right> constexpr auto