Remove use of = default/= delete as they're unsupported on MSVC2012

llvm-svn: 208388
This commit is contained in:
David Blaikie 2014-05-09 02:26:36 +00:00
parent e98ed2f49a
commit 194c7d9f94
1 changed files with 9 additions and 4 deletions

View File

@ -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) {