16 Nov
2004
16 Nov
'04
2:49 p.m.
Alex Drummond <a.drummond@ucl.ac.uk> writes:
Hi,
I'm using boost 1.31.0 and I'm having some trouble using type sequences with boost::variant. There seems to be an arbitrary limit on their length. For example, the following code compiles:
I'm pretty sure that's an MPL limitation. If you want to build a vector of more than 10 elements, you need to #include <boost/mpl/vector20.hpp> or if you need more than 20 elements, #include <boost/mpl/vector30.hpp> etc. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com