Monday, July 24, 2017

C++11: constexpr: object initialization

Marking an object definition to be constexpr guarantees the initialization will be done at compile-time.
Marking an object definition to be const does not guarantee the initialization will be done at compile-time.

No comments:

Post a Comment