SVG path grammar - return start rule by const&

This commit is contained in:
artemp 2016-12-23 13:26:37 +01:00
parent 30749031cf
commit 584fda88e0
2 changed files with 3 additions and 3 deletions

View file

@ -35,13 +35,13 @@ namespace x3 = boost::spirit::x3;
class relative_tag;
class svg_path_tag;
using svg_path_grammar_type = x3::rule<class svg_rule_tag>;
using svg_path_grammar_type = x3::rule<class svg_path_rule_tag>;
BOOST_SPIRIT_DECLARE(svg_path_grammar_type);
}
grammar::svg_path_grammar_type svg_path_grammar();
grammar::svg_path_grammar_type const& svg_path_grammar();
}}

View file

@ -185,7 +185,7 @@ BOOST_SPIRIT_DEFINE(
}
grammar::svg_path_grammar_type svg_path_grammar()
grammar::svg_path_grammar_type const& svg_path_grammar()
{
return grammar::svg_path;
}