Skip to content

Commit a34fb9a

Browse files
sipahebasto
authored andcommitted
miniscript: Make operator""_mst consteval
1 parent 1405216 commit a34fb9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/script/miniscript.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class Type {
132132

133133
public:
134134
//! The only way to publicly construct a Type is using this literal operator.
135-
friend constexpr Type operator""_mst(const char* c, size_t l);
135+
friend consteval Type operator""_mst(const char* c, size_t l);
136136

137137
//! Compute the type with the union of properties.
138138
constexpr Type operator|(Type x) const { return Type(m_flags | x.m_flags); }
@@ -154,7 +154,7 @@ class Type {
154154
};
155155

156156
//! Literal operator to construct Type objects.
157-
inline constexpr Type operator""_mst(const char* c, size_t l)
157+
inline consteval Type operator""_mst(const char* c, size_t l)
158158
{
159159
Type typ{0};
160160

0 commit comments

Comments
 (0)