Add user-defined copy constructor to ValueArray

Fix Clang warning:
| warning: definition of implicit copy constructor for 'ValueArray2<bool, bool>'
| is deprecated because it has a user-declared copy assignment operator [-Wdeprecated]
This commit is contained in:
Dominic Sacré
2018-08-31 14:57:23 +02:00
parent 8f279122de
commit 13c5230bbf
2 changed files with 414 additions and 0 deletions
@@ -83,6 +83,8 @@ class ValueArray$i {
return ValuesIn(array);
}
ValueArray$i(const ValueArray$i& other) : $for j, [[v$(j)_(other.v$(j)_)]] {}
private:
// No implementation - assignment is unsupported.
void operator=(const ValueArray$i& other);