Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-05-08 11:53:41


the following fails to compile. Should it?

--
  #include <boost/mpl/vector.hpp>
  #include <boost/mpl/push_back.hpp>
  namespace mpl =  boost::mpl;
  typedef mpl::vector<int[1], int[2], int[3], int[4], int[5], int[6], int[7], int[8], int[9], int[10]> v10;
  typedef mpl::push_back<v10, int[11]>::type v11;
--
foo.cpp: In instantiation of `boost::mpl::push_back<v10, int[11]>':
foo.cpp:9: base 
   `boost::mpl::push_back_traits<boost::mpl::aux::vector_tag<9> >::algorithm<v10, int[11]>'
    has incomplete type
foo.cpp:9: syntax error before `;' token
foo.cpp: In function `int main()':
foo.cpp:12: `v11' undeclared (first use this function)
-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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