dimanche 20 août 2017

Why isn't std::array's operator==() marked constexpr?

It's very natural to want to compare std::array's at compile time; and its operator==() is obviously constexpr'able. Yet - it isn't marked constexpr. Is this intentional or an oversight? And - what's the reason it was left that way (apparently in C++17 as well)?

Aucun commentaire:

Enregistrer un commentaire