forked from boostorg/fusion
bug fix for end_impl. (test)
[SVN r42165]
This commit is contained in:
@ -42,6 +42,9 @@ BOOST_FUSION_ADAPT_STRUCT(
|
|||||||
(int, y)
|
(int, y)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
struct s { int m; };
|
||||||
|
BOOST_FUSION_ADAPT_STRUCT(s, (int, m))
|
||||||
|
|
||||||
int
|
int
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
@ -101,6 +104,16 @@ main()
|
|||||||
l = p;
|
l = p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{ // begin/end
|
||||||
|
using namespace boost::fusion;
|
||||||
|
using boost::is_same;
|
||||||
|
|
||||||
|
typedef result_of::begin<s>::type b;
|
||||||
|
typedef result_of::end<s>::type e;
|
||||||
|
// this fails
|
||||||
|
BOOST_MPL_ASSERT((is_same<result_of::next<b>::type, e>));
|
||||||
|
}
|
||||||
|
|
||||||
return boost::report_errors();
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user