Re: [x3_devel] why not static ... def_ in specialized parse_rule?
Larry Evans <[email protected]> Thu, 25 Aug 2016 13:48:10 -0500
| Newsgroups | gmane.comp.parsers.spirit.devel |
|---|---|
| Message-ID | <[email protected]> |
On 08/24/2016 05:47 PM, Mikael Asplund wrote: > 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 So, why does x3-devel no longer do that? They must have some reason for the change, unless the change was unintended. > > > -----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 > > ------------------------------------------------------------------------------ > ------------------------------------------------------------------------------