lundi 2 mars 2015

using std::less with nullptr

does the assertion in the following code snippet always hold?



std::less<Object *> lessPtr;
Object * o = new Object();
assert(lessPtr (o, nullptr) == false);


Kind regards


Alexander


Aucun commentaire:

Enregistrer un commentaire