From a34fb9ad6c6cb4ffafdcefefa1ab957a430b69cf Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Tue, 2 Jan 2024 11:22:54 -0500 Subject: [PATCH] miniscript: Make `operator""_mst` `consteval` --- src/script/miniscript.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script/miniscript.h b/src/script/miniscript.h index 2d3d0d3382f..54ae777cf92 100644 --- a/src/script/miniscript.h +++ b/src/script/miniscript.h @@ -132,7 +132,7 @@ class Type { public: //! The only way to publicly construct a Type is using this literal operator. - friend constexpr Type operator""_mst(const char* c, size_t l); + friend consteval Type operator""_mst(const char* c, size_t l); //! Compute the type with the union of properties. constexpr Type operator|(Type x) const { return Type(m_flags | x.m_flags); } @@ -154,7 +154,7 @@ public: }; //! Literal operator to construct Type objects. -inline constexpr Type operator""_mst(const char* c, size_t l) +inline consteval Type operator""_mst(const char* c, size_t l) { Type typ{0};