Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66624 - trunk/boost/spirit/home/qi/detail
From: hartmut.kaiser_at_[hidden]
Date: 2010-11-17 15:39:22


Author: hkaiser
Date: 2010-11-17 15:39:18 EST (Wed, 17 Nov 2010)
New Revision: 66624
URL: http://svn.boost.org/trac/boost/changeset/66624

Log:
Spirit: Fixing cut&paste error, adding missing specializations for assign_to_attribute_from_iterators<>.
Text files modified:
   trunk/boost/spirit/home/qi/detail/construct.hpp | 33 ++++++++++++++++++++++++++++++++-
   1 files changed, 32 insertions(+), 1 deletions(-)

Modified: trunk/boost/spirit/home/qi/detail/construct.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/detail/construct.hpp (original)
+++ trunk/boost/spirit/home/qi/detail/construct.hpp 2010-11-17 15:39:18 EST (Wed, 17 Nov 2010)
@@ -33,6 +33,26 @@
         }
     };
 
+ template <typename Iterator>
+ struct assign_to_attribute_from_iterators<signed char, Iterator>
+ {
+ static void
+ call(Iterator const& first, Iterator const& last, signed char& attr)
+ {
+ attr = *first;
+ }
+ };
+
+ template <typename Iterator>
+ struct assign_to_attribute_from_iterators<unsigned char, Iterator>
+ {
+ static void
+ call(Iterator const& first, Iterator const& last, unsigned char& attr)
+ {
+ attr = *first;
+ }
+ };
+
     // wchar_t is intrinsic
     template <typename Iterator>
     struct assign_to_attribute_from_iterators<wchar_t, Iterator>
@@ -61,7 +81,7 @@
     struct assign_to_attribute_from_iterators<bool, Iterator>
     {
         static void
- call(Iterator const& first, Iterator const& last, char& attr)
+ call(Iterator const& first, Iterator const& last, bool& attr)
         {
             Iterator first_ = first;
             qi::parse(first_, last, bool_, attr);
@@ -80,6 +100,17 @@
     };
 
     template <typename Iterator>
+ struct assign_to_attribute_from_iterators<unsigned short, Iterator>
+ {
+ static void
+ call(Iterator const& first, Iterator const& last, unsigned short& attr)
+ {
+ Iterator first_ = first;
+ qi::parse(first_, last, ushort_, attr);
+ }
+ };
+
+ template <typename Iterator>
     struct assign_to_attribute_from_iterators<int, Iterator>
     {
         static void


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk