Xpressive: Compile Error
Hello List,
Code:
boost::xpressive::sregex character =
+_w;
Dies with compiler error:
/usr/include/boost/xpressive/proto/make_expr.hpp:832: error: expected
nested-name-specifier before numeric constant
/usr/include/boost/xpressive/proto/make_expr.hpp:832: error: expected
‘>’ before numeric constant
/usr/include/boost/xpressive/proto/make_expr.hpp:837: error: type/value
mismatch at argument 3 in template parameter list for ‘template
Etienne Philip Pretorius wrote:
Hello List,
Code:
boost::xpressive::sregex character = +_w;
Dies with compiler error:
/usr/include/boost/xpressive/proto/make_expr.hpp:832: error: expected nested-name-specifier before numeric constant /usr/include/boost/xpressive/proto/make_expr.hpp:832: error: expected ‘>’ before numeric constant /usr/include/boost/xpressive/proto/make_expr.hpp:837: error: type/value mismatch at argument 3 in template parameter list for ‘template
struct boost::proto::result_of::make_expr’ /usr/include/boost/xpressive/proto/make_expr.hpp:837: error: expected a type, got ‘0’ /usr/include/boost/xpressive/proto/make_expr.hpp:837: error: expected initializer before ‘const’ It does not matter what the expression is.
Any idea why xpressive is not working?
Please send a *complete* example, along with what compiler and version you're using. -- Eric Niebler BoostPro Computing http://www.boostpro.com
participants (2)
-
Eric Niebler
-
Etienne Philip Pretorius