/// BEGIN Du behöver inte förstå nedan kod /// Om koden orsakar bekymmer kommenterar du ut includen och anropet i main template auto check_disabled_copy(T, int, int)->decltype(T{std::declval()}, std::declval()) { std::cout << "ERROR: Found copy constructor" << std::endl; } template auto check_disabled_copy(T& t, int, unsigned)->decltype(t.operator=(t), std::declval()) { std::cout << "ERROR: Found assignment operator" << std::endl; } template auto check_disabled_copy(T&, unsigned, unsigned)->void { std::cout << "OK" << std::endl; } /// END Du behöver inte förstå ovan kod