mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
Explicitly default ilistTest::Node's copy constructor
In the presence of a user-declared dtor, calling an implicit copy ctor is deprecated in C++11. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231256 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b74289c83d
commit
40e20ea8ce
@ -21,7 +21,8 @@ struct Node : ilist_node<Node> {
|
||||
int Value;
|
||||
|
||||
Node() {}
|
||||
Node(int _Value) : Value(_Value) {}
|
||||
Node(int Value) : Value(Value) {}
|
||||
Node(const Node&) = default;
|
||||
~Node() { Value = -1; }
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user