$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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