Skip to content

Commit 13a99f7

Browse files
committed
Work around assertion failure in clang++ from emitting consteval
1 parent f438578 commit 13a99f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subspace/ops/range_literals.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ struct RangeLiteralDeducer {
3131
std::conditional_t<IsSigned, ::sus::num::isize, ::sus::num::usize>;
3232
using Digit = std::conditional_t<IsSigned, int, unsigned int>;
3333

34-
// A non-consteval method used to indicate failure in parsing, which produces
34+
// A non-constexpr method used to indicate failure in parsing, which produces
3535
// a compiler error and still works in the presence of -fno-exceptions unlike
3636
// `throw`.
3737
static void invalid(const char*);
3838

39-
consteval RangeLiteralDeducer(const char* c) {
39+
constexpr RangeLiteralDeducer(const char* c) {
4040
size_t i = 0u;
4141

4242
bool has_lower = false;

0 commit comments

Comments
 (0)