Boost logo

Boost :

Subject: Re: [boost] [mpl][docs]why use list?
From: Dmitry Goncharov (dgoncharov_at_[hidden])
Date: 2009-03-23 07:11:57


Larry Evans wrote:
>
> Unfortunately, following the directions on:
>
> http://www.boost.org/doc/libs/1_38_0/libs/mpl/doc/refmanual/limit-vector-size.html
>
>
> I created vector_max.cpp which had an 80 element vector
> preceded by this at the top of the file:
> -{--cut here--
> #define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
> #define BOOST_MPL_LIMIT_VECTOR_SIZE 80
> #include <boost/mpl/vector.hpp>
> -}--cut here--
>
> However, compilation resulted in:
>
> -{--compilation--
>
> /home/evansl/download/gcc/4.4-20090109/install/bin/g++ -c -Wall
> -ftemplate-depth-100 -O0 -fno-inline
> -I/home/evansl/prog_dev/boost-svn/ro/boost-trunk vector_max.cpp -o
> /home/evansl/prog_dev/boost-svn/ro/boost-trunk/sandbox/build/gcc4_4/variadic-templates/libs/mpl/sandbox/vector_max.o
> -MMD
> In file included from vector_max.cpp:10:
> /home/evansl/prog_dev/boost-svn/ro/boost-trunk/boost/mpl/vector.hpp:36:73:
> error: boost/mpl/vector/vector80.hpp: No such file or directory
> In file included from
> /home/evansl/prog_dev/boost-svn/ro/boost-trunk/boost/preprocessor/iteration/detail/iter/forward1.hpp:47,
>
> from
> /home/evansl/prog_dev/boost-svn/ro/boost-trunk/boost/mpl/aux_/sequence_wrapper.hpp:164,
>
> from
>
> /home/evansl/prog_dev/boost-svn/ro/boost-trunk/boost/mpl/vector.hpp:54,
>
>
> -}--compilation--
>
> Does anyone know what I might be doing wrong?
>
>
You can find the answer here
http://lists.boost.org/boost-users/2004/08/7647.php.

BR, Dmitry


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