forked from OSchip/llvm-project
Remove use of = default/= delete as they're unsupported on MSVC2012
llvm-svn: 208388
This commit is contained in:
parent
e98ed2f49a
commit
194c7d9f94
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue