An empty polymorphic class that can't be moved (copy is allowed).
- See also
PolymorphicClass
, PolymorphicUncopiableClass
, PolymorphicUncopiableAndUnmovableClass
A class derived from this one can still be moved with an explicit effort. For example, to enable move construction:
MoveableClass(MoveableClass&& from)
{
}
};
the default constructor of the base class can be called explicitly instead of the move constructor. To provide a move assignment operation,
MoveAssignableClass&
operator= (MoveAssignableClass&& from)
{
return *this;
}
};
Definition at line 270 of file UncopiableAndUnmovableClass.h.