From fc6b8fc04a3f638fe3fcee686296b5287bacdbc7 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Sun, 4 Feb 2024 14:12:47 +0100 Subject: [PATCH] make the empty semantic context constexpr --- ebml/EbmlElement.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebml/EbmlElement.h b/ebml/EbmlElement.h index 43695757..742f5c33 100644 --- a/ebml/EbmlElement.h +++ b/ebml/EbmlElement.h @@ -76,7 +76,7 @@ class EbmlElement; #define DEFINE_xxx_CLASS_CONS(x,id,parent,name,global) \ static constexpr const libebml::EbmlId Id_##x {id}; static_assert(libebml::EbmlId::IsValid(Id_##x .GetValue()), "invalid id for " name ); \ - constexpr const libebml::EbmlSemanticContext Context_##x = libebml::EbmlSemanticContext(0, nullptr, &Context_##parent, global, &EBML_INFO(x)); + static constexpr const libebml::EbmlSemanticContext Context_##x = libebml::EbmlSemanticContext(0, nullptr, &Context_##parent, global, &EBML_INFO(x)); #define DEFINE_xxx_CLASS_BASE(x,BaseClass,id,parent,name,versions,global) \ DEFINE_xxx_CLASS_CONS(x,id,parent,name,global) \