Skip to content

Commit 6924c3b

Browse files
committed
Remove constexpr from evaluate method in repetition_min_max_expression, as std::vector is not supported in constexpr functions until C++26
1 parent 9b353ed commit 6924c3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lug/lug.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ struct repetition_min_max_expression : unary_encoder_expression_interface<repeti
12621262
repetition_min_max_expression(E1 const& e, unsigned int nmin, unsigned int nmax) : base_type{e}, min_count{nmin}, max_count{nmax} {}
12631263

12641264
template <class M>
1265-
[[nodiscard]] constexpr decltype(auto) evaluate(encoder& d, M const& m) const
1265+
[[nodiscard]] decltype(auto) evaluate(encoder& d, M const& m) const
12661266
{
12671267
auto const start = d.encode(opcode::jump);
12681268
auto const subexpression = d.here();

0 commit comments

Comments
 (0)