Skip to main content

Practice · 2 of 3

consteval as a Compile-Time Gate

CHALLENGE
Difficulty: advanced+25 XP

Implement specVersion as consteval, rejecting anything below version 2 at compile time (throw in the constexpr path), and pick as a plain constexpr selector.

Back to lesson: Practice: Compile-Time Computing