Re[7]: Отсутствующий конструктор копирования в MSVC2019 вызы
От: andrey.desman  
Дата: 07.03.24 18:14
Оценка: +1 :)
Здравствуйте, Marty, Вы писали:

M>На MSVC не работает так же, как у меня


Потому что ты, негодяй, не сказал, что есть деструктор.


If no user-defined move constructors are provided for a class type, and all of the following is true:

there are no user-declared copy constructors;
there are no user-declared copy assignment operators;
there are no user-declared move assignment operators;
there is no user-declared destructor.

Then the compiler will declare a move constructor as a non-explicit inline public member of its class with the signature T::T(T&&).

 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.