Boost logo

Boost :

Subject: [boost] [fusion] VC8 specific error
From: John Maddock (boost.regex_at_[hidden])
Date: 2010-09-04 12:33:49


I'm getting the following error from fusion only when using VC8:

..\..\..\boost/fusion/sequence/intrinsic/at.hpp(59) : error C2504:
'boost::fusion::extension::at_impl<Tag>::apply<Sequence,N>' : base class
undefined
        with
        [
            Tag=boost::fusion::non_fusion_tag
        ]
        and
        [
            Sequence=const boost::tuples::tuple<double,double>,
            N=boost::mpl::int_<0>
        ]
        ..\..\..\boost/fusion/sequence/intrinsic/at.hpp(64) : see reference
to class template instantiation 'boost::fusion::result_of::at<Sequence,N>'
being compiled
        with
        [
            Sequence=const boost::tuples::tuple<double,double>,
            N=boost::mpl::int_<0>
        ]
        ..\..\..\boost/math/tools/roots.hpp(47) : see reference to class
template instantiation 'boost::fusion::result_of::at_c<Sequence,N>' being
compiled
        with
        [
            Sequence=const boost::tuples::tuple<double,double>,
            N=0
        ]
        ..\..\..\boost/math/tools/roots.hpp(225) : see reference to function
template instantiation 'void
boost::math::tools::detail::unpack<boost::tuples::tuple<T0,T1>,T,T>(const
Tuple &,T &,U &)' being compiled
        with
        [
            T0=double,
            T1=double,
            T=double,
            Tuple=boost::tuples::tuple<double,double>,
            U=double
        ]
        compile_test\tools_roots_concept_test.cpp(115) : see reference to
function template instantiation 'T
boost::math::tools::newton_raphson_iterate<F2t,double>(F,T,T,T,int,boost::uintmax_t
&)' being compiled
        with
        [
            T=double,
            F=F2t
        ]

The code is simply calling boost::fusion::get<N>() on a fusion tuple, and
after including <boost/fusion/tuple.hpp>.

Any ideas?

This is with Trunk BTW.

Cheers, John.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk