
5 Apr
2005
5 Apr
'05
1:34 a.m.
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