Код: Выделить всё
#include
#include
template struct S {
S(const S&) = delete;
S& operator=(const S&) = delete;
S(S&&) = delete;
S& operator=(S&&) = delete;
T t;
S(T v) : t(v) {}
void InterfaceMethod() { std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79863939/how-to-create-a-type-deducing-tuple-with-neither-copyable-nor-movable-members-t[/url]
Мобильная версия