- Exercise

Let's solve an exercise in this lesson.

We'll cover the following

Try It Out!

Use my MyDouble in your program.

  • How can you be sure that instances of MyDouble are created at compile time?
  • What happens, if the instances of my MyDouble are used in non-constexpr contexts?

Get hands-on with 1400+ tech skills courses.