We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
operator""_mst
consteval
1 parent 1405216 commit a34fb9aCopy full SHA for a34fb9a
src/script/miniscript.h
@@ -132,7 +132,7 @@ class Type {
132
133
public:
134
//! 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);
+ friend consteval Type operator""_mst(const char* c, size_t l);
136
137
//! Compute the type with the union of properties.
138
constexpr Type operator|(Type x) const { return Type(m_flags | x.m_flags); }
@@ -154,7 +154,7 @@ class Type {
154
};
155
156
//! Literal operator to construct Type objects.
157
-inline constexpr Type operator""_mst(const char* c, size_t l)
+inline consteval Type operator""_mst(const char* c, size_t l)
158
{
159
Type typ{0};
160
0 commit comments