bug fix for end_impl.

[SVN r42164]
This commit is contained in:
Joel de Guzman
2007-12-19 10:33:14 +00:00
parent e9fd448376
commit 61bf0151da
2 changed files with 10 additions and 4 deletions

View File

@ -9,6 +9,7 @@
#define BOOST_FUSION_END_IMPL_24122005_1755 #define BOOST_FUSION_END_IMPL_24122005_1755
#include <boost/fusion/adapted/struct/struct_iterator.hpp> #include <boost/fusion/adapted/struct/struct_iterator.hpp>
#include <boost/fusion/adapted/struct/detail/size_impl.hpp>
namespace boost { namespace fusion namespace boost { namespace fusion
{ {
@ -25,7 +26,12 @@ namespace boost { namespace fusion
template <typename Sequence> template <typename Sequence>
struct apply struct apply
{ {
typedef struct_iterator<Sequence, 2> type; typedef
struct_iterator<
Sequence
, size_impl<struct_tag>::template apply<Sequence>::value
>
type;
static type static type
call(Sequence& v) call(Sequence& v)