Boost logo

Boost Users :

From: Arkadiy Vertleyb (vertleyb_at_[hidden])
Date: 2004-08-30 13:42:47


"Aleksey Gurtovoy" <agurtovoy_at_[hidden]> wrote
> Arkadiy Vertleyb writes:
> > Sorry to repeat this question, but I think I am missing somehing here:
> >
> > Do I understand correctly that it's not possible in the current
> > version of MPL to use mpl::vector of a size larger than 50?
>
> It is possible. As I tried to explain in my previous reply, you can
> pre-generate the coressponding headers up to whatever limit you
> choose. You can also generate the sequence "on the fly", although
> that's less efficient.
>
> >
> > If this is not correct, what exactly do I have to do to use, for
> > example, mpl::vector97<...>?
>
> #include "boost/mpl/vector/vector50.hpp"
> #include "boost/mpl/aux_/config/vector.hpp"
> #include "boost/mpl/aux_/config/ctps.hpp"
> #include "boost/preprocessor/iterate.hpp"
> #include "boost/config.hpp"
>
> namespace boost { namespace mpl {
> #define BOOST_PP_ITERATION_PARAMS_1 \
> (3,(51, 100, "boost/mpl/vector/aux_/numbered.hpp"))
> #include BOOST_PP_ITERATE()
> }}

I guess the issue of efficiency can be cured with pre-compiled headers (on
the systems that support them)...

Sorry I didn't understand your first reply.

Thanks,
Arkadiy


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