[Boost-bugs] [Boost C++ Libraries] #6106: New map[] directive to augment qi::symbols when doing binary parsing

Subject: [Boost-bugs] [Boost C++ Libraries] #6106: New map[] directive to augment qi::symbols when doing binary parsing
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-11-08 19:16:22


#6106: New map[] directive to augment qi::symbols when doing binary parsing
----------------------------------+-----------------------------------------
 Reporter: oakad@… | Owner: djowel
     Type: Patches | Status: new
Milestone: To Be Determined | Component: spirit
  Version: Boost Release Branch | Severity: Not Applicable
 Keywords: |
----------------------------------+-----------------------------------------
 qi::symbols is an exceptionally useful parser, but it is strongly tied to
 character strings as its input type. When doing binary parsing, one of the
 common tasks is de-serializing objects from the binary stream, an activity
 which can strongly benefit from Nabialek trick (http://boost-
 spirit.com/home/articles/qi-example/nabialek-trick/). Another common use
 case are extensible enum types, a feat which is somewhat cumbersome to
 handle with attribute transformations.

 This is my first attempt at implementing a qi directive, so it's probably
 far from perfect. One of the immediate shortcomings I want to resolve is
 direct dependency on std::map which is also passed by value between
 instances.

 The implementation and a short example demonstrating Nabialek trick is
 attached.

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