Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65219 - in trunk/boost/spirit/home: karma/auto qi/auto
From: hartmut.kaiser_at_[hidden]
Date: 2010-09-03 13:22:34


Author: hkaiser
Date: 2010-09-03 13:22:29 EDT (Fri, 03 Sep 2010)
New Revision: 65219
URL: http://svn.boost.org/trac/boost/changeset/65219

Log:
Spirit: Added specializations for signed char and unsigned char to the auto parser and generator.
Text files modified:
   trunk/boost/spirit/home/karma/auto/meta_create.hpp | 13 +++++++++++++
   trunk/boost/spirit/home/qi/auto/meta_create.hpp | 13 +++++++++++++
   2 files changed, 26 insertions(+), 0 deletions(-)

Modified: trunk/boost/spirit/home/karma/auto/meta_create.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/auto/meta_create.hpp (original)
+++ trunk/boost/spirit/home/karma/auto/meta_create.hpp 2010-09-03 13:22:29 EDT (Fri, 03 Sep 2010)
@@ -207,12 +207,25 @@
         static type const& call() { return spirit::standard::char_; }
     };
     template <>
+ struct meta_create<signed char>
+ {
+ typedef spirit::standard::char_type type;
+ static type const& call() { return spirit::standard::char_; }
+ };
+ template <>
     struct meta_create<wchar_t>
     {
         typedef spirit::standard_wide::char_type type;
         static type const& call() { return spirit::standard_wide::char_; }
     };
 
+ template <>
+ struct meta_create<unsigned char>
+ {
+ typedef spirit::standard::char_type type;
+ static type const& call() { return spirit::standard::char_; }
+ };
+
     // boolean generator
     template <>
     struct meta_create<bool>

Modified: trunk/boost/spirit/home/qi/auto/meta_create.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/auto/meta_create.hpp (original)
+++ trunk/boost/spirit/home/qi/auto/meta_create.hpp 2010-09-03 13:22:29 EDT (Fri, 03 Sep 2010)
@@ -142,12 +142,25 @@
         static type const& call() { return spirit::standard::char_; }
     };
     template <>
+ struct meta_create<signed char>
+ {
+ typedef spirit::standard::char_type type;
+ static type const& call() { return spirit::standard::char_; }
+ };
+ template <>
     struct meta_create<wchar_t>
     {
         typedef spirit::standard_wide::char_type type;
         static type const& call() { return spirit::standard_wide::char_; }
     };
 
+ template <>
+ struct meta_create<unsigned char>
+ {
+ typedef spirit::standard::char_type type;
+ static type const& call() { return spirit::standard::char_; }
+ };
+
     // boolean generator
     template <>
     struct meta_create<bool>


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