[boost] MPL CVS still bustificated?

2003-05-08 Thread David Abrahams

the following fails to compile.  Should it?

--

  #include boost/mpl/vector.hpp
  #include boost/mpl/push_back.hpp

  namespace mpl =  boost::mpl;
  typedef mpl::vectorint[1], int[2], int[3], int[4], int[5], int[6], int[7], int[8], 
int[9], int[10] v10;
  typedef mpl::push_backv10, int[11]::type v11;

--

foo.cpp: In instantiation of `boost::mpl::push_backv10, int[11]':
foo.cpp:9: base 
   `boost::mpl::push_back_traitsboost::mpl::aux::vector_tag9 ::algorithmv10, 
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


Re: [boost] MPL CVS still bustificated?

2003-05-08 Thread Aleksey Gurtovoy
David Abrahams wrote:

 the following fails to compile.  Should it?

 --

   #include boost/mpl/vector.hpp
   #include boost/mpl/push_back.hpp

   namespace mpl =  boost::mpl;
   typedef mpl::vectorint[1], int[2], int[3], int[4], int[5], int[6],
int[7], int[8], int[9], int[10] v10;
   typedef mpl::push_backv10, int[11]::type v11;


Contrary to what the docs say, no. Please see
http://groups.yahoo.com/group/Boost-Users/message/3852.

Aleksey

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