Per [meta.rel] (20.10.6 in C++14), for a class type T, std::is_base_of<T,T> is true, but for a built-in type T, std::is_base_of<T,T> is false. Colloquially speaking, class types are bases of themselves, but built-in types are not. What is the motivation/utility for this difference in treatment?
Aucun commentaire:
Enregistrer un commentaire