projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee118f3
)
Explicitly default DenseMapTest::CtorTest::operator=
author
David Blaikie
<dblaikie@gmail.com>
Wed, 4 Mar 2015 07:57:45 +0000
(07:57 +0000)
committer
David Blaikie
<dblaikie@gmail.com>
Wed, 4 Mar 2015 07:57:45 +0000
(07:57 +0000)
Using the implicit default copy assignment operator in the presence of a
user-declared copy ctor is deprecated in C++11.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231225
91177308
-0d34-0410-b5e6-
96231b3b80d8
unittests/ADT/DenseMapTest.cpp
patch
|
blob
|
history
diff --git
a/unittests/ADT/DenseMapTest.cpp
b/unittests/ADT/DenseMapTest.cpp
index f4979839c78d5392631a20284d2de0ad91756ea5..97807771725d447064e90ba601f15e07afb13c08 100644
(file)
--- a/
unittests/ADT/DenseMapTest.cpp
+++ b/
unittests/ADT/DenseMapTest.cpp
@@
-46,6
+46,7
@@
public:
CtorTester(const CtorTester &Arg) : Value(Arg.Value) {
EXPECT_TRUE(Constructed.insert(this).second);
}
+ CtorTester &operator=(const CtorTester &) = default;
~CtorTester() {
EXPECT_EQ(1u, Constructed.erase(this));
}