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

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to