From 6d749777fca6bdea18b77e5e13d853dd67e64b1d Mon Sep 17 00:00:00 2001 From: Daniel Patterson Date: Wed, 2 Mar 2016 09:54:08 -0800 Subject: [PATCH] Using bind in this case causes ambiguity with GCC 5.2.1 (see http://www.boost.org/doc/libs/develop/libs/bind/doc/html/bind.html#bind.faq.Q_forms). Remove template and let the type be deduced automatically. --- include/server/api_grammar.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/server/api_grammar.hpp b/include/server/api_grammar.hpp index f75dc390d..19d478d16 100644 --- a/include/server/api_grammar.hpp +++ b/include/server/api_grammar.hpp @@ -111,11 +111,11 @@ template struct APIGrammar : qi::grammar> qi::lit("tz") >> '=' >> - qi::int_[boost::bind(&HandlerT::SetZ, handler, ::_1)]; + qi::int_[boost::bind(&HandlerT::SetZ, handler, ::_1)]; x = (-qi::lit('&')) >> qi::lit("tx") >> '=' >> - qi::int_[boost::bind(&HandlerT::SetX, handler, ::_1)]; + qi::int_[boost::bind(&HandlerT::SetX, handler, ::_1)]; y = (-qi::lit('&')) >> qi::lit("ty") >> '=' >> - qi::int_[boost::bind(&HandlerT::SetY, handler, ::_1)]; + qi::int_[boost::bind(&HandlerT::SetY, handler, ::_1)]; string = +(qi::char_("a-zA-Z")); stringwithDot = +(qi::char_("a-zA-Z0-9_.-"));