forked from OSchip/llvm-project
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. llvm-svn: 231256
This commit is contained in:
parent
7945c8a1bb
commit
0bc56dacba
llvm/unittests/ADT
|
@ -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