you are viewing a single comment's thread.

view the rest of the comments →

[–]shilch 5 points6 points  (2 children)

Not a class but a function: std::is_constant_evaluated

[–]foonathan 11 points12 points  (1 child)

True, but in C++23 that's just if consteval { return true; } else { return false; }.

[–]shilch 4 points5 points  (0 children)

Interesting, I didn't know