c++ why do constexpr functions need to be marked constexpr?

Viewed 64

This is just a curiosity question.

Why does C++ require functions which otherwise fulfill the requirements of constexpr-ness to be explicitly marked with constexpr ? ie, why not leave constexpr off, from a language-design point of view ?

edit: similar question here: Is constexpr the new inline ?

0 Answers
Related