vendredi 21 avril 2017

c2280 default constructor for std::vector requires copy constructor for elements despite having move constructor

Title says it all, under what circumstances would the default constructor for std::vector require a copy constructor for the elements and not accept only a move constructor? I am explicitly deleting the copy constructor and explicitly defaulting the move constructor using VS2017.

Aucun commentaire:

Enregistrer un commentaire