Re: [Boost-bugs] [Boost C++ Libraries] #12016: x3::symbols moves result and therefore removes it from the symbol_parser itself

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12016: x3::symbols moves result and therefore removes it from the symbol_parser itself
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-02-23 22:39:19


#12016: x3::symbols moves result and therefore removes it from the symbol_parser
itself
-------------------------------+---------------------------------
  Reporter: UsYer | Owner: djowel
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: spirit
   Version: Boost 1.60.0 | Severity: Regression
Resolution: fixed | Keywords: spirit, x3, symbols
-------------------------------+---------------------------------

Comment (by bugs@…):

 Excellent report.

 It strikes me that the const-ness of the value seems to be _the_ way to
 indicate a parser's result value is not to be moved from.

 (This seems to be by design? It seems a bit odd that the library would not
 strictly perfectly forward all temporaries and only move from known
 rvalues)

 I suggested a patch based on const mapped values
 https://github.com/boostorg/spirit/pull/174

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12016#comment:4>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC