Fix -Wdeprecated-copy warnings (rule of 5/3/0)
Fix -Wdeprecated-copy warnings in various places. Consists in enforcing rule of five/three/zero (https://en.cppreference.com/w/cpp/language/rule_of_three) mainly by deleting redundant copy constructors or copy assignment operators that replicate default constructors/operators, or more rarely by adding missing copy/move constructors/operators. See also https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c20-if-you-can-avoid-defining-default-operations-do
This commit is contained in:
@@ -257,7 +257,7 @@ class Int128
|
||||
}
|
||||
|
||||
|
||||
Int128(const Int128 &val): lo(val.lo), hi(val.hi){}
|
||||
//Int128(const Int128 &val): lo(val.lo), hi(val.hi){}
|
||||
|
||||
Int128(const long64& _hi, const ulong64& _lo): lo(_lo), hi(_hi){}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user