"projects/web/public/vscode:/vscode.git/clone" did not exist on "ece7f8d5a476d6fdcf3aa948f1786e69e8c96aed"
Commit 13c5230b authored by Dominic Sacré's avatar Dominic Sacré
Browse files

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