Author
anonymous
almost 8 years ago
Language
Compiler
Options
Author
anonymous
almost 8 years ago
$
prog.cc: In function 'int main()':
prog.cc:26:18: error: use of deleted function 'MyClass::MyClass(Anything&) [with Anything = const char*; std::enable_if_t<(! std::integral_constant<bool, (is_same_v<T, int> || is_same_v<T, float>)>{})>* <anonymous> = 0]'
MyClass x2{v2};
^
prog.cc:15:5: note: declared here
MyClass(Anything&) = delete;
^~~~~~~
Exit Code:
1