[Boost-bugs] [Boost C++ Libraries] #6050: Make spirit::transform_attribute::post return bool instead of void

Subject: [Boost-bugs] [Boost C++ Libraries] #6050: Make spirit::transform_attribute::post return bool instead of void
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-10-24 11:07:26


#6050: Make spirit::transform_attribute::post return bool instead of void
------------------------------+---------------------------------------------
 Reporter: oakad@… | Owner: djowel
     Type: Patches | Status: new
Milestone: To Be Determined | Component: spirit
  Version: Boost 1.47.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 Currently, when doing attribute transformations, spirit::qi assumes that
 if "Transformed" attribute parsing succeedes, then assignment to "Exposed"
 attribute value will inevitably succeed as well, hence
 transform_attribute::post return value is not provided nor checked for.

 However, there are many classes of problems (especially those involving
 restricted numeric types, such as ranges and strongly typed enums) which
 can benefit from recoverable parser failures during attribute
 transformation, if post() was allowed to signal a failure.

 The proposed patch to spirit::qi is attached.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6050>
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:07 UTC