Boost logo

Boost :

From: Hamish Mackenzie (hamish_at_[hidden])
Date: 2004-05-07 13:15:28


#define BOOST_MPL_LIMIT_VECTOR_SIZE 20
#include "boost/mpl/vector.hpp"
#include "boost/mpl/push_front.hpp"
                                                                                                                                                                                                    
class X
{
};
                                                                                                                                                                                                    
typedef boost::mpl::vector20< X, X, X, X, X, X, X, X, X, X, X, X, X, X,
X, X, X, X, X, X > test;
typedef boost::mpl::push_front< test, X >::type test2;
                                                                                                                                                                                                    
int main()
{
        return 0;
}

GCC Version 3.4.0 gives

/usr/include/boost/mpl/push_front.hpp: In instantiation of
`boost::mpl::push_front<test, X>':
push_front.cpp:10: instantiated from here
/usr/include/boost/mpl/push_front.hpp:36: error: invalid use of
undefined type `struct
boost::mpl::push_front_traits<boost::mpl::aux::vector_tag<20l>
>::algorithm<test, X>'
/usr/include/boost/mpl/aux_/push_front_impl.hpp:31: error: declaration
of `struct
boost::mpl::push_front_traits<boost::mpl::aux::vector_tag<20l>
>::algorithm<test, X>'
push_front.cpp:10: error: expected init-declarator before "test2"
push_front.cpp:10: error: expected `,' or `;' before "test2"


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