Skip to content

Commit

Permalink
make the empty semantic context constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
robUx4 committed Feb 24, 2024
1 parent 358e4c5 commit fc6b8fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ebml/EbmlElement.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit fc6b8fc

Please sign in to comment.