mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-29 20:17:32 +02:00
added test for returning a tuple of double with conversion from a tuple of ints
[SVN r35740]
This commit is contained in:
@ -31,6 +31,12 @@ namespace
|
||||
struct DD { operator CC() const { return CC(); }; };
|
||||
}
|
||||
|
||||
boost::fusion::FUSION_SEQUENCE<double, double, double, double>
|
||||
foo(int i)
|
||||
{
|
||||
return boost::fusion::FUSION_MAKE(i, i+1, i+2, i+3);
|
||||
}
|
||||
|
||||
void
|
||||
test()
|
||||
{
|
||||
@ -60,4 +66,7 @@ test()
|
||||
BOOST_TEST(i==1);
|
||||
BOOST_TEST(c=='a');
|
||||
BOOST_TEST(d>5.4 && d<5.6);
|
||||
|
||||
// returning a tuple with conversion
|
||||
foo(2);
|
||||
}
|
||||
|
Reference in New Issue
Block a user