// https://godbolt.org/z/vmKAwd struct S { int i; S& operator=(const S&) = delete; }; S test(const S& s) { return S(s); } clang++ -Wdeprecated test.cc (incorrectly ...
The aiVector3t class has an explicitly declared default copy constructor, and an implicitly declared copy assignment operator. This causes the deprecated-copy warning to be triggered on Clang (and ...
From a purely object-oriented perspective, "copy semantics" is the right way to preserve control over object ownership. But in those scenarios where ownership becomes irrelevant, C++11 "move semantics ...