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:
@@ -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}};
|
||||
|
||||
Reference in New Issue
Block a user