Commit 13c5230b by Dominic Sacré

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]
parent 8f279122
...@@ -83,6 +83,8 @@ class ValueArray$i { ...@@ -83,6 +83,8 @@ class ValueArray$i {
return ValuesIn(array); return ValuesIn(array);
} }
ValueArray$i(const ValueArray$i& other) : $for j, [[v$(j)_(other.v$(j)_)]] {}
private: private:
// No implementation - assignment is unsupported. // No implementation - assignment is unsupported.
void operator=(const ValueArray$i& other); void operator=(const ValueArray$i& other);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment