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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208388 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Blaikie 2014-05-09 02:26:36 +00:00
parent 74d614a6fc
commit 3fb66ae739

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