Dear all,
Trying the Vector example at the Proto documentation:
http://boost.org/doc/libs/1_45_0/doc/html/proto/users_guide.html#boost_proto...
under Boost 1.42 and GCC 4.5.1 (MinGW32, WinXP, SP3), I get the error message in the PS. Any ideas why this is happening? How would I solve the problem? (BTW, I have already tried the Boost 1.42 version of this example as well.)
TIA,--Hossein
-------------- Build: Debug in Vector ---------------
Compiling: main.cpp
In file included from d:\program files\codeblocks\mingw\bin\../lib/gcc/mingw32/4.5.1/include/c++/vector:65:0,
from D:\My Documents\My Programmes\Tutorial\Proto\Examples\Vector\main.cpp:10:
d:\program files\codeblocks\mingw\bin\../lib/gcc/mingw32/4.5.1/include/c++/bits/stl_vector.h: In instantiation of 'std::_Vector_base':
d:\program files\codeblocks\mingw\bin\../lib/gcc/mingw32/4.5.1/include/c++/bits/stl_vector.h:171:5: instantiated from 'std::vector'
D:\Sources\Boost\boost_1_42_0/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp:85:5: instantiated from 'const int boost::mpl::aux::template_arity_impl, 1>::value'
D:\Sources\Boost\boost_1_42_0/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp:93:5: instantiated from 'const int boost::mpl::aux::template_arity >::value'
D:\Sources\Boost\boost_1_42_0/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp:98:30: instantiated from 'boost::mpl::aux::template_arity >'
D:\Sources\Boost\boost_1_42_0/boost/proto/matches.hpp:247:13: instantiated from 'boost::proto::detail::terminal_matches >'
D:\Sources\Boost\boost_1_42_0/boost/proto/matches.hpp:322:13: [ skipping 7 instantiation contexts ]
D:\Sources\Boost\boost_1_42_0/boost/proto/matches.hpp:505:13: instantiated from 'boost::proto::result_of::matches, 0l> >, VectorExpr, 0l> > >, 2l> >, VectorGrammar>'
D:\Sources\Boost\boost_1_42_0/boost/mpl/aux_/nested_type_wknd.hpp:28:1: instantiated from 'boost::mpl::aux::nested_type_wknd, 0l> >, VectorExpr, 0l> > >, 2l> >, VectorGrammar> >'
D:\Sources\Boost\boost_1_42_0/boost/mpl/aux_/preprocessed/gcc/and.hpp:29:1: instantiated from 'boost::mpl::aux::and_impl, 0l> >, VectorExpr, 0l> > >, 2l> >, VectorGrammar>, mpl_::bool_<true>, mpl_::bool_<true>, mpl_::bool_<true> >'
D:\Sources\Boost\boost_1_42_0/boost/mpl/aux_/preprocessed/gcc/and.hpp:55:1: instantiated from 'boost::mpl::and_, 0l> >, VectorExpr, 0l> > >, 2l> >, VectorGrammar>, mpl_::bool_<true>, mpl_::bool_<true>, mpl_::bool_<true> >'
D:\Sources\Boost\boost_1_42_0/boost/proto/operators.hpp:219:9: instantiated from 'boost::proto::detail::enable_binary, std::vector<int>, IsVector, std::vector<int>, VectorExpr, 0l> >, VectorExpr, 0l> > >, 2l> > >'
D:\My Documents\My Programmes\Tutorial\Proto\Examples\Vector\main.cpp:223:34: instantiated from here
d:\program files\codeblocks\mingw\bin\../lib/gcc/mingw32/4.5.1/include/c++/bits/stl_vector.h:71:60: error: no class template named 'rebind' in 'struct boost::proto::wildcardns_::_'
d:\program files\codeblocks\mingw\bin\../lib/gcc/mingw32/4.5.1/include/c++/bits/stl_vector.h: In instantiation of 'std::vector':
D:\Sources\Boost\boost_1_42_0/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp:85:5: instantiated from 'const int boost::mpl::aux::template_arity_impl, 1>::value'
D:\Sources\Boost\boost_1_42_0/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp:93:5: instantiated from 'const int boost::mpl::aux::template_arity >::value'
D:\Sources\Boost\boost_1_42_0/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp:98:30: instantiated from 'boost::mpl::aux::template_arity >'
D:\Sources\Boost\boost_1_42_0/boost/proto/matches.hpp:247:13: instantiated from 'boost::proto::detail::terminal_matches >'
D:\Sources\Boost\boost_1_42_0/boost/proto/matches.hpp:322:13: instantiated from 'boost::proto::detail::matches_, 0l>, boost::proto::exprns_::expr >, 0l> >'
D:\Sources\Boost\boost_1_42_0/boost/proto/matches.hpp:505:13: [ skipping 6 instantiation contexts ]
D:\Sources\Boost\boost_1_42_0/boost/proto/matches.hpp:505:13: instantiated from 'boost::proto::result_of::matches, 0l> >, VectorExpr, 0l> > >, 2l> >, VectorGrammar>'
D:\Sources\Boost\boost_1_42_0/boost/mpl/aux_/nested_type_wknd.hpp:28:1: instantiated from 'boost::mpl::aux::nested_type_wknd, 0l> >, VectorExpr, 0l> > >, 2l> >, VectorGrammar> >'
D:\Sources\Boost\boost_1_42_0/boost/mpl/aux_/preprocessed/gcc/and.hpp:29:1: instantiated from 'boost::mpl::aux::and_impl, 0l> >, VectorExpr, 0l> > >, 2l> >, VectorGrammar>, mpl_::bool_<true>, mpl_::bool_<true>, mpl_::bool_<true> >'
D:\Sources\Boost\boost_1_42_0/boost/mpl/aux_/preprocessed/gcc/and.hpp:55:1: instantiated from 'boost::mpl::and_, 0l> >, VectorExpr, 0l> > >, 2l> >, VectorGrammar>, mpl_::bool_<true>, mpl_::bool_<true>, mpl_::bool_<true> >'
D:\Sources\Boost\boost_1_42_0/boost/proto/operators.hpp:219:9: instantiated from 'boost::proto::detail::enable_binary, std::vector<int>, IsVector, std::vector<int>, VectorExpr, 0l> >, VectorExpr, 0l> > >, 2l> > >'
D:\My Documents\My Programmes\Tutorial\Proto\Examples\Vector\main.cpp:223:34: instantiated from here
d:\program files\codeblocks\mingw\bin\../lib/gcc/mingw32/4.5.1/include/c++/bits/stl_vector.h:173:58: error: no type named 'value_type' in 'struct boost::proto::wildcardns_::_'
d:\program files\codeblocks\mingw\bin\../lib/gcc/mingw32/4.5.1/include/c++/bits/stl_vector.h:196:20: error: no members matching 'std::vector::_Base::_M_allocate' in 'struct std::vector::_Base'
d:\program files\codeblocks\mingw\bin\../lib/gcc/mingw32/4.5.1/include/c++/bits/stl_vector.h:197:20: error: no members matching 'std::vector::_Base::_M_deallocate' in 'struct std::vector::_Base'
d:\program files\codeblocks\mingw\bin\../lib/gcc/mingw32/4.5.1/include/c++/bits/stl_vector.h:199:20: error: no members matching 'std::vector::_Base::_M_get_Tp_allocator' in 'struct std::vector::_Base'
Process terminated with status 1 (0 minutes, 2 seconds)
7 errors, 0 warnings