Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57415 - in trunk: boost/spirit/home/qi/numeric libs/spirit/test/qi
From: hartmut.kaiser_at_[hidden]
Date: 2009-11-05 12:50:26


Author: hkaiser
Date: 2009-11-05 12:50:26 EST (Thu, 05 Nov 2009)
New Revision: 57415
URL: http://svn.boost.org/trac/boost/changeset/57415

Log:
Spirit: replaced long long by boost::long_long_type
Text files modified:
   trunk/boost/spirit/home/qi/numeric/int.hpp | 3 ++-
   trunk/boost/spirit/home/qi/numeric/uint.hpp | 2 +-
   trunk/libs/spirit/test/qi/int.cpp | 2 +-
   3 files changed, 4 insertions(+), 3 deletions(-)

Modified: trunk/boost/spirit/home/qi/numeric/int.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/numeric/int.hpp (original)
+++ trunk/boost/spirit/home/qi/numeric/int.hpp 2009-11-05 12:50:26 EST (Thu, 05 Nov 2009)
@@ -152,7 +152,8 @@
 #ifdef BOOST_HAS_LONG_LONG
     //[primitive_parsers_long_long_
     template <typename Modifiers>
- struct make_primitive<tag::long_long, Modifiers> : make_int<long long> {};
+ struct make_primitive<tag::long_long, Modifiers>
+ : make_int<boost::long_long_type> {};
     //]
 #endif
 

Modified: trunk/boost/spirit/home/qi/numeric/uint.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/numeric/uint.hpp (original)
+++ trunk/boost/spirit/home/qi/numeric/uint.hpp 2009-11-05 12:50:26 EST (Thu, 05 Nov 2009)
@@ -171,7 +171,7 @@
 #ifdef BOOST_HAS_LONG_LONG
     template <typename Modifiers>
     struct make_primitive<tag::ulong_long, Modifiers>
- : make_uint<unsigned long long> {};
+ : make_uint<boost::ulong_long_type> {};
 #endif
 }}}
 

Modified: trunk/libs/spirit/test/qi/int.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/int.cpp (original)
+++ trunk/libs/spirit/test/qi/int.cpp 2009-11-05 12:50:26 EST (Thu, 05 Nov 2009)
@@ -28,7 +28,7 @@
 // LONG_LONG_MIN and LONG_LONG_MAX macros in limits.h. This
 // assumes that long long is 64 bits.
 
-BOOST_STATIC_ASSERT(sizeof(long long) == 8);
+BOOST_STATIC_ASSERT(sizeof(boost::long_long_type) == 8);
 
 #if !defined(LONG_LONG_MIN) && !defined(LONG_LONG_MAX)
 # define LONG_LONG_MAX 0x7fffffffffffffffLL


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