Skip to content

Commit

Permalink
make EBML_CTX_IDX return a constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
robUx4 committed Mar 3, 2024
1 parent fd13595 commit 82cd826
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 @@ -538,7 +538,7 @@ class EBML_DLL_API EbmlSemanticContextMaster : public EbmlSemanticContext {
const EbmlSemantic *MyTable; ///< First element in the table
};

static inline const EbmlSemantic & tEBML_CTX_IDX(const EbmlSemanticContextMaster & c, std::size_t i)
static inline constexpr const EbmlSemantic & tEBML_CTX_IDX(const EbmlSemanticContextMaster & c, std::size_t i)
{
return c.GetSemantic(i);
}
Expand Down

0 comments on commit 82cd826

Please sign in to comment.