aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@yahooinc.com>2022-09-23 13:47:22 +0200
committerGitHub <noreply@github.com>2022-09-23 13:47:22 +0200
commite3a7b619b4bedee9ff126085f17de43688547f90 (patch)
treee449e942ce0a106b607bb9435a42f9d60adae1c7 /vespalib
parentba9328856ecd42d0f4df2dcced793afc51f458b8 (diff)
parent1d6d043ebcd665fc245e4fdcefebc4455d04bc7f (diff)
Merge pull request #24195 from vespa-engine/toregge/use-inline-constexpr-variables
Use inline constexpr variables.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/util/traits.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vespalib/src/vespa/vespalib/util/traits.h b/vespalib/src/vespa/vespalib/util/traits.h
index bc87a7cb11d..5086908bce9 100644
--- a/vespalib/src/vespa/vespalib/util/traits.h
+++ b/vespalib/src/vespa/vespalib/util/traits.h
@@ -9,7 +9,7 @@ namespace vespalib {
//-----------------------------------------------------------------------------
template <typename T>
-constexpr bool enable_skip_destruction = false;
+inline constexpr bool enable_skip_destruction = false;
template <typename T>
concept can_skip_destruction = std::is_trivially_destructible_v<T> || enable_skip_destruction<T>;
@@ -22,7 +22,7 @@ concept can_skip_destruction = std::is_trivially_destructible_v<T> || enable_ski
#define VESPA_CAN_SKIP_DESTRUCTION(MyType) \
namespace vespalib { \
template <> \
- constexpr bool enable_skip_destruction<MyType> = true; \
+ inline constexpr bool enable_skip_destruction<MyType> = true; \
}
//-----------------------------------------------------------------------------