From d2c815a3372156d93626e6e3c2d1f0fcd0d467f3 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 12 Nov 2025 10:21:05 +0100 Subject: [PATCH] fix(protozero): Keep the SpanID and TraceID ctors `constexpr` Signed-off-by: Remi Gacogne --- pdns/protozero-trace.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pdns/protozero-trace.hh b/pdns/protozero-trace.hh index 1b2fc2b9fe..31c48d1a3b 100644 --- a/pdns/protozero-trace.hh +++ b/pdns/protozero-trace.hh @@ -231,7 +231,7 @@ struct InstrumentationScope struct TraceID : public std::array { - TraceID() : + constexpr TraceID() : array{} {}; TraceID(const std::initializer_list& arg) : array{} @@ -262,11 +262,11 @@ struct TraceID : public std::array this->fill(0); } }; -const TraceID s_emptyTraceID = {}; +constexpr TraceID s_emptyTraceID = {}; struct SpanID : public std::array { - SpanID() : + constexpr SpanID() : array{} {}; SpanID(const std::initializer_list& arg) : array{} @@ -297,7 +297,7 @@ struct SpanID : public std::array this->fill(0); } }; -const SpanID s_emptySpanID = {}; +constexpr SpanID s_emptySpanID = {}; inline void fill(TraceID& trace, const std::string& data) { -- 2.47.3