]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove unnecessary 'static' from __is_specialization_of
authorNathaniel Shead <nathanieloshead@gmail.com>
Tue, 10 Sep 2024 12:05:40 +0000 (22:05 +1000)
committerNathaniel Shead <nathanieloshead@gmail.com>
Tue, 24 Sep 2024 06:55:14 +0000 (16:55 +1000)
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 <nathanieloshead@gmail.com>
libstdc++-v3/include/std/format

index 100a53dfd76f745425a7568831beb19ef5c8638b..1e9a8374012df6fb563ad3f38227f432422c5c5f 100644 (file)
@@ -365,10 +365,9 @@ namespace __format
 
 /// @cond undocumented
   template<typename _Tp, template<typename...> class _Class>
-    static constexpr bool __is_specialization_of = false;
+    constexpr bool __is_specialization_of = false;
   template<template<typename...> 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
 {