Boost logo

Boost-Commit :

From: joel_at_[hidden]
Date: 2007-12-19 05:33:39


Author: djowel
Date: 2007-12-19 05:33:39 EST (Wed, 19 Dec 2007)
New Revision: 42165
URL: http://svn.boost.org/trac/boost/changeset/42165

Log:
bug fix for end_impl. (test)
Text files modified:
   trunk/libs/fusion/test/sequence/adapt_struct.cpp | 13 +++++++++++++
   1 files changed, 13 insertions(+), 0 deletions(-)

Modified: trunk/libs/fusion/test/sequence/adapt_struct.cpp
==============================================================================
--- trunk/libs/fusion/test/sequence/adapt_struct.cpp (original)
+++ trunk/libs/fusion/test/sequence/adapt_struct.cpp 2007-12-19 05:33:39 EST (Wed, 19 Dec 2007)
@@ -42,6 +42,9 @@
     (int, y)
 )
 
+struct s { int m; };
+BOOST_FUSION_ADAPT_STRUCT(s, (int, m))
+
 int
 main()
 {
@@ -101,6 +104,16 @@
         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();
 }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk