Re: [x3_devel] why not static ... def_ in specialized parse_rule?
Mikael Asplund <[email protected]> Wed, 24 Aug 2016 22:47:35 +0000
| Newsgroups | gmane.comp.parsers.spirit.devel |
|---|---|
| Message-ID | <[email protected]> |
If you take a look at the master branch (which is in the released X3), you'll notice that it is... https://github.com/boostorg/spirit/blob/master/include/boost/spirit/home/x3/nonterminal/rule.hpp#L164 /Mikael -----Original Message----- From: Larry Evans [mailto:[email protected]] Sent: Wednesday, August 24, 2016 11:25 To: [email protected] Subject: [Spirit-devel] [x3_devel] why not static ... def_ in specialized parse_rule? The code here: https://github.com/boostorg/spirit/blob/x3-devel/include/boost/spirit/home/x3/nonterminal/rule.hpp#L167 recalculates the same const value each time the function is entered. Why not make this static to avoid the recalculation? ------------------------------------------------------------------------------ _______________________________________________ Spirit-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spirit-devel ------------------------------------------------------------------------------