Lecture 6 - Slide 33 : 40
Examples of constant expressions

We show a number of examples of constant expressions

constexpr-1.cpp
Examples of constant expressions - C++11.
constexpr-1-statass.cpp
The same program - with results statically asserted.
constexpr-4.cpp
Evaluation of constexpr at run-time - C++11.
constexpr-5.cpp
Relaxed constexpr in C++14.
constexpr-2.cpp
Examples of a literal type, struct Point - C++11.
constexpr-2-statass.cpp
The same program - with results statically asserted.
constexpr-3.cpp
Examples of class Circle with a constexpr constructor - C++11.