Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56527 - trunk/boost/spirit/home/qi/numeric/detail
From: hartmut.kaiser_at_[hidden]
Date: 2009-10-02 15:20:46


Author: hkaiser
Date: 2009-10-02 15:20:46 EDT (Fri, 02 Oct 2009)
New Revision: 56527
URL: http://svn.boost.org/trac/boost/changeset/56527

Log:
Spirit: fixed a problem in Qi int_extractor, now uses assign_to customization point
Text files modified:
   trunk/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp | 7 ++++---
   1 files changed, 4 insertions(+), 3 deletions(-)

Modified: trunk/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp (original)
+++ trunk/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp 2009-10-02 15:20:46 EDT (Fri, 02 Oct 2009)
@@ -15,6 +15,7 @@
 
 #include <boost/detail/iterator.hpp>
 #include <boost/spirit/home/support/unused.hpp>
+#include <boost/spirit/home/support/attributes.hpp>
 #include <boost/spirit/home/support/char_encoding/ascii.hpp>
 #include <boost/preprocessor/repetition/repeat.hpp>
 #include <boost/utility/enable_if.hpp>
@@ -362,7 +363,7 @@
 
             if (count + leading_zeros >= MinDigits)
             {
- attr = val;
+ traits::assign_to(val, attr);
                 first = it;
                 return true;
             }
@@ -457,7 +458,7 @@
             {
                 if (count == 0) // must have at least one digit
                     return false;
- attr = val;
+ traits::assign_to(val, attr);
                 first = it;
                 return true;
             }
@@ -471,7 +472,7 @@
                   , SPIRIT_NUMERIC_INNER_LOOP, _)
             }
 
- attr = val;
+ traits::assign_to(val, attr);
             first = it;
             return true;
         }


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