cereal icon indicating copy to clipboard operation
cereal copied to clipboard

copy constructor is implicitly deleted because 'OutputArchiveBase' has a user-declared move constructor

Open andrewkcorcoran opened this issue 1 year ago • 1 comments

db6586e changed the move constructors and the move assignment operators of OutputArchiveBase and InputArchiveBase to be user defined instead of = default. As a result the move constructors and assignment operators of all dervied classes have been deleted as ... "If the class definition declares a move constructor or move assignment operator, the implicitly declared copy constructor is defined as deleted".

This prevents users from using std::move on all archives!

andrewkcorcoran avatar Feb 14 '24 12:02 andrewkcorcoran

您的邮件我已收到,谢谢合作!

redchairman avatar Feb 14 '24 12:02 redchairman