No, non-copyable elements cannot be in C ++ class classes.
According to the standard, clause 23.1 of clause 3: βThe type of objects stored in these components must satisfy the requirements of CopyConstructible
types (20.1.3) and the additional requirements of Assignable
types.
David thornley
source share