I got these error compiling NT2 with proto trunk

/usr/local/include/boost-latest/boost/proto/detail/decltype.hpp:67:56: error: 'M0' has not been declared /usr/local/include/boost-latest/boost/proto/detail/decltype.hpp:67:1: error: expected identifier before '~' token /usr/local/include/boost-latest/boost/proto/detail/decltype.hpp:67:1: error: expected ')' before '~' token /usr/local/include/boost-latest/boost/proto/detail/decltype.hpp:67:1: error: ISO C++ forbids declaration of 'BOOST_PP_REPEAT_1_BOOST_PROTO_MAX_ARITY' with no type /usr/local/include/boost-latest/boost/proto/detail/decltype.hpp:67:1: error: expected ';' before '~' token

Our code is :

#include <boost/config.hpp>
#include <boost/detail/workaround.hpp>

#if BOOST_WORKAROUND(BOOST_MSVC, >= 1600) && defined BOOST_NO_DECLTYPE
#undef BOOST_NO_DECLTYPE
#endif

#include <boost/proto/detail/decltype.hpp>
#define NT2_DECLTYPE(EXPR, TYPE) BOOST_PROTO_DECLTYPE_(EXPR, TYPE)


Is detail/decltype.hpp a no-go to reuse this way ?
As for why we do this, we have to fight against some MSVC bug w/r to decltype that PROTO_DECLTYPE seemed to fix.
_______________________________________________
proto mailing list
proto@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/proto

Reply via email to