From 7a24bba3cea5e945e5a60910ff7e87371e868b91 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Sat, 24 Feb 2024 11:09:05 +0100 Subject: [PATCH] make EBML_CTX_IDX return a constexpr --- ebml/EbmlElement.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebml/EbmlElement.h b/ebml/EbmlElement.h index 8641caa5..23d2c757 100644 --- a/ebml/EbmlElement.h +++ b/ebml/EbmlElement.h @@ -474,7 +474,7 @@ static inline constexpr const EbmlSemanticContext * EBML_CTX_PARENT(const EbmlSe return c.Parent(); } -static inline const EbmlSemantic & EBML_CTX_IDX(const EbmlSemanticContext & c, std::size_t i) +static inline constexpr const EbmlSemantic & EBML_CTX_IDX(const EbmlSemanticContext & c, std::size_t i) { return c.GetSemantic(i); }