Move + and * operators of MoveOnly into MoveOnly.h.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@321852 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Billy Robert O'Neal III
2018-01-05 01:32:00 +00:00
parent 70a8aae298
commit 4dd943ec8e
2 changed files with 2 additions and 11 deletions

View File

@@ -58,16 +58,6 @@ void test_return_type()
decltype(std::transform_reduce(p, p, p, Init{}))> );
}
inline MoveOnly operator+(const MoveOnly& lhs, const MoveOnly& rhs)
{
return MoveOnly{lhs.get() + rhs.get()};
}
inline MoveOnly operator*(const MoveOnly& lhs, const MoveOnly& rhs)
{
return MoveOnly{lhs.get() * rhs.get()};
}
void test_move_only_types()
{
MoveOnly ia[] = {{1}, {2}, {3}};