Код: Выделить всё
#include
struct S {
S() = default;
S(S&) {
std::cout flag;
S y = flag ? std::move(s) : s;
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... l-operator
Код: Выделить всё
#include
struct S {
S() = default;
S(S&) {
std::cout flag;
S y = flag ? std::move(s) : s;
}