Call to implicitly deleted copy constructor in LLVM
问题 As per C++11 rules 6 things (default constructor, copy constructor, move constructor, copy assignment, move assignment and destructor ) are generated by default. By second rule, when any custom copy, move or destructor is defined then those default operations are not generated. But in my code that follows that is not the case. But this code fails to compile with an error call to implicitly deleted copy constructor of 'Uni' When I write my own copy constructor for Uni everything works fine.