Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54968 - trunk/boost/spirit/home/karma/numeric/detail
From: hartmut.kaiser_at_[hidden]
Date: 2009-07-15 10:27:04


Author: hkaiser
Date: 2009-07-15 10:27:04 EDT (Wed, 15 Jul 2009)
New Revision: 54968
URL: http://svn.boost.org/trac/boost/changeset/54968

Log:
Spirit: fixed bogus return types
Text files modified:
   trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp | 9 +++++----
   1 files changed, 5 insertions(+), 4 deletions(-)

Modified: trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp (original)
+++ trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp 2009-07-15 10:27:04 EDT (Wed, 15 Jul 2009)
@@ -448,12 +448,12 @@
         // a boost::long_long_type (if this does exist) or in a plain long
         // otherwise
 #if defined(BOOST_HAS_LONG_LONG)
- static std::size_t max_long()
+ static boost::long_long_type max_long()
         {
             return (std::numeric_limits<boost::long_long_type>::max)();
         }
 #else
- static std::size_t max_long()
+ static long max_long()
         {
             return (std::numeric_limits<long>::max)();
         }
@@ -574,8 +574,9 @@
     // customization of the formatting process
     //
     ///////////////////////////////////////////////////////////////////////////
- template <
- typename T, typename Policies, typename CharEncoding = unused_type
+ template <typename T
+ , typename Policies = real_policies<T>
+ , typename CharEncoding = unused_type
       , typename Tag = unused_type>
     struct real_inserter
     {


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