mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-02 15:20:57 +02:00
testing fusion transform and fold work with free functions now that only Boost.ResultOf support is required
[SVN r38063]
This commit is contained in:
@ -71,6 +71,11 @@ struct unary_lvalue_transform
|
||||
}
|
||||
};
|
||||
|
||||
int twice(int v)
|
||||
{
|
||||
return v*2;
|
||||
}
|
||||
|
||||
struct binary_lvalue_transform
|
||||
{
|
||||
template<typename Sig>
|
||||
@ -141,6 +146,12 @@ main()
|
||||
BOOST_TEST(*begin(transform(tup1, tup2, binary_lvalue_transform())) == &at_c<0>(tup1));
|
||||
}
|
||||
|
||||
{
|
||||
vector<int, int, int> tup1(1, 2, 3);
|
||||
BOOST_TEST(transform(tup1, twice) == make_vector(2,4,6));
|
||||
}
|
||||
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user