Boost logo

Boost Users :

From: Joel de Guzman (joel_at_[hidden])
Date: 2007-01-18 02:35:04


Chris Weed wrote:
> Hi,
> I am trying to get the type of the first element in a fusion vector
> using mpl::at_c. This seems simple enough.
>
> // Here is the code
> #include <boost/fusion/sequence/container/vector.hpp>
> #include <boost/mpl/at.hpp>
>
> int main()
> {
> typedef boost::fusion::vector<int,int> VectorType;
>
> typedef boost::mpl::at_c<VectorType,0>::type value0;
> return 0;
> }

You'll need to include the at.hpp counterpart of fusion, or
bring in the whole set of intrinsics:

     #include <boost/fusion/sequence/intrinsic.hpp>

Regards,

-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net