From 67279d5c3d55591ad0a77b6200697fe6f86995f2 Mon Sep 17 00:00:00 2001 From: Joel de Guzman Date: Wed, 19 Dec 2007 10:33:39 +0000 Subject: [PATCH] bug fix for end_impl. (test) [SVN r42165] --- test/sequence/adapt_struct.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/sequence/adapt_struct.cpp b/test/sequence/adapt_struct.cpp index c9c1d2db..2d208b57 100644 --- a/test/sequence/adapt_struct.cpp +++ b/test/sequence/adapt_struct.cpp @@ -42,6 +42,9 @@ BOOST_FUSION_ADAPT_STRUCT( (int, y) ) +struct s { int m; }; +BOOST_FUSION_ADAPT_STRUCT(s, (int, m)) + int main() { @@ -101,6 +104,16 @@ main() l = p; } + { // begin/end + using namespace boost::fusion; + using boost::is_same; + + typedef result_of::begin::type b; + typedef result_of::end::type e; + // this fails + BOOST_MPL_ASSERT((is_same::type, e>)); + } + return boost::report_errors(); }