Wie erstelle ich ein typableitendes Tupel ohne kopierbare oder bewegliche Elemente? Das Tupel selbst ist ein KlassenmitgC++

Programme in C++. Entwicklerforum
Anonymous
 Wie erstelle ich ein typableitendes Tupel ohne kopierbare oder bewegliche Elemente? Das Tupel selbst ist ein Klassenmitg

Post by Anonymous »

Code: Select all

#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

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post