Boost logo

Boost Users :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2005-04-04 20:34:48


Stefan Strasser writes:
> the problem was that I've exceeded the default maximum vector size
> of 20. do you consider it a bug that a vector of 21 items worked on
> gcc without any redefinition of BOOST_MPL_LIMIT_VECTOR_SIZE?

Nope; gcc has 'typeof', which enables unrestricted vector
extensibility. That said, increasing BOOST_MPL_LIMIT_VECTOR_SIZE is
not the right way to fix this -- simply including the corresponding
numbered vector header would suffice, i.e.:

   #include <boost/mpl/vector/vector30.hpp>

FWIW, we explain this in the book.

HTH,

-- 
Aleksey Gurtovoy
MetaCommunications Engineering

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