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:
howetuft
2019-10-19 20:11:05 +02:00
committed by wmayer
parent e31f84f5d5
commit b858757bb2
7 changed files with 76 additions and 49 deletions

View File

@@ -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){}