Questions tagged as 'constexpr'

1
answer

Constant expressions to detect the presence and value of macros

I am making great efforts to translate the macros of my projects to constant expressions that can be used with if constexpr . At the moment I have achieved almost satisfactory results doing some tricks with macros, I start defining macros...
asked by 28.02.2017 / 12:50
2
answers

Doubt about constexpr

Why not always use the reserved word constexpr when defining methods or functions? If he calculates everything he can in compilation and what does not, he finds it running, without causing error.     
asked by 09.10.2018 / 22:25