aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathaniel Shead <nathanieloshead@gmail.com>2024-09-10 22:05:40 +1000
committerNathaniel Shead <nathanieloshead@gmail.com>2024-09-24 16:55:14 +1000
commit618871ff09c07817f7ce9b2bd7338cd3299ad8f5 (patch)
treeb649e68ce7a50d050002d85ae33df42a20c79360
parentf9dfe8dea31bf5c56aa7798a0905707faf9e7ec4 (diff)
downloadgcc-618871ff09c07817f7ce9b2bd7338cd3299ad8f5.zip
gcc-618871ff09c07817f7ce9b2bd7338cd3299ad8f5.tar.gz
gcc-618871ff09c07817f7ce9b2bd7338cd3299ad8f5.tar.bz2
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 <nathanieloshead@gmail.com>
-rw-r--r--libstdc++-v3/include/std/format5
1 files changed, 2 insertions, 3 deletions
diff --git a/libstdc++-v3/include/std/format b/libstdc++-v3/include/std/format
index 100a53d..1e9a837 100644
--- a/libstdc++-v3/include/std/format
+++ b/libstdc++-v3/include/std/format
@@ -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
{