From: Nathaniel Shead Date: Tue, 10 Sep 2024 12:05:40 +0000 (+1000) Subject: libstdc++: Remove unnecessary 'static' from __is_specialization_of X-Git-Tag: basepoints/gcc-16~5734 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=618871ff09c07817f7ce9b2bd7338cd3299ad8f5;p=thirdparty%2Fgcc.git libstdc++: Remove unnecessary 'static' from __is_specialization_of This makes the declarations internal linkage, which is an ODR issue, and causes a future modules patch to fail regtest as it now detects attempted uses of TU-local entities in module CMIs. libstdc++-v3/ChangeLog: * include/std/format: Remove unnecessary 'static'. Signed-off-by: Nathaniel Shead --- diff --git a/libstdc++-v3/include/std/format b/libstdc++-v3/include/std/format index 100a53dfd76..1e9a8374012 100644 --- a/libstdc++-v3/include/std/format +++ b/libstdc++-v3/include/std/format @@ -365,10 +365,9 @@ namespace __format /// @cond undocumented template class _Class> - static constexpr bool __is_specialization_of = false; + constexpr bool __is_specialization_of = false; template class _Class, typename... _Args> - static constexpr bool __is_specialization_of<_Class<_Args...>, _Class> - = true; + constexpr bool __is_specialization_of<_Class<_Args...>, _Class> = true; namespace __format {