diff --git a/Server/APIGrammar.h b/Server/APIGrammar.h index 4e9a21e8a..8f343d973 100644 --- a/Server/APIGrammar.h +++ b/Server/APIGrammar.h @@ -35,8 +35,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. namespace qi = boost::spirit::qi; template -struct APIGrammar : qi::grammar { - explicit APIGrammar(HandlerT * h) : APIGrammar::base_type(api_call), handler(h) { +struct APIGrammar : qi::grammar +{ + explicit APIGrammar(HandlerT * h) : APIGrammar::base_type(api_call), handler(h) + { api_call = qi::lit('/') >> string[boost::bind(&HandlerT::setService, handler, ::_1)] >> *(query); query = ('?') >> (+(zoom | output | jsonp | checksum | location | hint | cmp | language | instruction | geometry | alt_route | old_API) ) ;