[llvm] r231225 - Explicitly default DenseMapTest::CtorTest::operator=
David Blaikie
dblaikie at gmail.com
Tue Mar 3 23:57:45 PST 2015
Author: dblaikie
Date: Wed Mar 4 01:57:45 2015
New Revision: 231225
URL: http://llvm.org/viewvc/llvm-project?rev=231225&view=rev
Log:
Explicitly default DenseMapTest::CtorTest::operator=
Using the implicit default copy assignment operator in the presence of a
user-declared copy ctor is deprecated in C++11.
Modified:
llvm/trunk/unittests/ADT/DenseMapTest.cpp
Modified: llvm/trunk/unittests/ADT/DenseMapTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/DenseMapTest.cpp?rev=231225&r1=231224&r2=231225&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/DenseMapTest.cpp (original)
+++ llvm/trunk/unittests/ADT/DenseMapTest.cpp Wed Mar 4 01:57:45 2015
@@ -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));
}
More information about the llvm-commits
mailing list