From 1d6d043ebcd665fc245e4fdcefebc4455d04bc7f Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Fri, 23 Sep 2022 10:23:00 +0200 Subject: Use inline constexpr variables. --- vespalib/src/vespa/vespalib/util/traits.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vespalib') 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 -constexpr bool enable_skip_destruction = false; +inline constexpr bool enable_skip_destruction = false; template concept can_skip_destruction = std::is_trivially_destructible_v || enable_skip_destruction; @@ -22,7 +22,7 @@ concept can_skip_destruction = std::is_trivially_destructible_v || enable_ski #define VESPA_CAN_SKIP_DESTRUCTION(MyType) \ namespace vespalib { \ template <> \ - constexpr bool enable_skip_destruction = true; \ + inline constexpr bool enable_skip_destruction = true; \ } //----------------------------------------------------------------------------- -- cgit v1.2.3