diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-05-09 02:26:36 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-05-09 02:26:36 +0000 |
commit | 194c7d9f9463aa75e465e8fe638fc830b26a06c2 (patch) | |
tree | 31fe5c5e6c37815256898f03e527fa5a057d106e /llvm/unittests | |
parent | e98ed2f49abb75ac393c0c32f2df95435d87bda8 (diff) | |
download | bcm5719-llvm-194c7d9f9463aa75e465e8fe638fc830b26a06c2.tar.gz bcm5719-llvm-194c7d9f9463aa75e465e8fe638fc830b26a06c2.zip |
Remove use of = default/= delete as they're unsupported on MSVC2012
llvm-svn: 208388
Diffstat (limited to 'llvm/unittests')
-rw-r--r-- | llvm/unittests/ADT/StringMapTest.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/llvm/unittests/ADT/StringMapTest.cpp b/llvm/unittests/ADT/StringMapTest.cpp index b90c77b1c15..de18e07f386 100644 --- a/llvm/unittests/ADT/StringMapTest.cpp +++ b/llvm/unittests/ADT/StringMapTest.cpp @@ -221,10 +221,15 @@ TEST_F(StringMapTest, NonDefaultConstructable) { struct MoveOnly { int i; MoveOnly(int i) : i(i) {} - MoveOnly(MoveOnly &&) = default; - MoveOnly(const MoveOnly &) = delete; - MoveOnly &operator=(MoveOnly &&) = default; - MoveOnly &operator=(const MoveOnly &) = delete; + MoveOnly(MoveOnly &&RHS) : i(RHS.i) {} + MoveOnly &operator=(MoveOnly &&RHS) { + i = RHS.i; + return *this; + } + +private: + MoveOnly(const MoveOnly &); + MoveOnly &operator=(const MoveOnly &); }; TEST_F(StringMapTest, MoveOnlyKey) { |