I know that a copy constructor is always created by default even if I don't explicitly create one. Is the same true for a move constructor? Let's assume a have a very simple class:
class SimpleClass
{
public:
SimpleClass(int value) :
member(value)
{}
int member;
};
Do I explicitly need to write SimpleClass(SimpleClass &&other) default
to create the default move constructor or not?
Aucun commentaire:
Enregistrer un commentaire