Meeting
Live Q&A - Modern C++ in Embedded Development: Expressive Compile-Time Computation
Amar Mahmutbegovic
Live Q&A with Amar Mahmutbegovic for the talk titled Modern C++ in Embedded Development: Expressive Compile-Time Computation
JoeTrainor
Score: 0 | 2 years ago | 1 reply
amar_mahmutbegovicSpeaker
Score: 0 | 2 years ago | no reply
You would use consteval to enforce compile-time evaluation. Calling consteval function with run-time arguments would result in compile error.
Constexpr functions can be used both with const expressions and run-time arguments.





When would someone use constexpr verse consteval?