9 ms·
Constexpr is not necessary. Only required if you want to ensure that a variable is initialized with a pre-computed value. The compiler will optimize in either c
by kindfellow92 9y ago
Constexpr is not necessary. Only required if you want to ensure that a variable is initialized with a pre-computed value. The compiler will optimize in either case if it can, regardless of the constexpr attribute.
- pjmlp 9y ago> Only required if you want to ensure that a variable is initialized with a pre-computed value Yep.