Skip to main content

Practice ยท 2 of 3

consteval as a Compile-Time Gate

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

Difficulty: advanced

Back to lesson: Practice: Compile-Time Computing