The things you can do at compile time!
Constexpr FizzBuzz – An Exercise in Compile-Time Calculations
by Arne Mertz
From the article:
Recently, I have given a workshop about language features introduced in C++14 and C++17. Since a major part of those features includes constexpr things, I gave my trainees the task to port “FizzBuzz” to compile time. Here is a possible approach to that kind of problem...
Add a Comment
Comments are closed.