mardi 30 décembre 2014

Why isn't abs constexpr?

In <cinttypes>, since C++11, there are the following two overloads:



std::intmax_t abs( std::intmax_t n );
std::intmax_t imaxabs( std::intmax_t n );


Why aren't those two functions constexpr?


Aucun commentaire:

Enregistrer un commentaire