diff --git a/include/boost/typeof/typeof_impl.hpp b/include/boost/typeof/typeof_impl.hpp index bdd3472..e3a36e0 100755 --- a/include/boost/typeof/typeof_impl.hpp +++ b/include/boost/typeof/typeof_impl.hpp @@ -82,7 +82,7 @@ namespace boost { namespace type_of { struct _typeof_encode_fraction {\ BOOST_STATIC_CONSTANT(int,_typeof_encode_offset = (_Typeof_Iteration*BOOST_TYPEOF_LIMIT_SIZE));\ typedef boost::type_of::offset_vector,boost::mpl::size_t<_typeof_encode_offset> > _typeof_start_vector;\ - BOOST_PP_REPEAT(BOOST_TYPEOF_LIMIT_SIZE,BOOST_TYPEOF_NESTED_TYPEITEM,expr);\ + BOOST_PP_REPEAT(BOOST_TYPEOF_LIMIT_SIZE,BOOST_TYPEOF_NESTED_TYPEITEM,expr)\ };\ template\ struct _typeof_fraction_iter {\ diff --git a/test/nested_typedef.cpp b/test/nested_typedef.cpp index dc9f370..d1bb3e4 100644 --- a/test/nested_typedef.cpp +++ b/test/nested_typedef.cpp @@ -1,4 +1,3 @@ - #include #include #include @@ -15,7 +14,7 @@ struct { template struct wrap { - BOOST_TYPEOF_NESTED_TYPEDEF_TPL(nested,int_p[& do_int]); + BOOST_TYPEOF_NESTED_TYPEDEF_TPL(nested,int_p[& do_int]) typedef typename nested::type type; }; @@ -25,7 +24,7 @@ template struct parser { struct __rule { static T & a_placeholder; - BOOST_TYPEOF_NESTED_TYPEDEF_TPL(nested,int_p[a_placeholder]); + BOOST_TYPEOF_NESTED_TYPEDEF_TPL(nested,int_p[a_placeholder]) typedef typename nested::type type; }; };