Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2008-01-21 16:37:04


Author: danieljames
Date: 2008-01-21 16:37:04 EST (Mon, 21 Jan 2008)
New Revision: 42908
URL: http://svn.boost.org/trac/boost/changeset/42908

Log:
Use boost::long_long_type and boost::ulong_long_type.
Text files modified:
   branches/unordered/trunk/boost/functional/hash/hash.hpp | 8 ++++----
   branches/unordered/trunk/libs/functional/hash/test/hash_number_test.cpp | 4 ++--
   2 files changed, 6 insertions(+), 6 deletions(-)

Modified: branches/unordered/trunk/boost/functional/hash/hash.hpp
==============================================================================
--- branches/unordered/trunk/boost/functional/hash/hash.hpp (original)
+++ branches/unordered/trunk/boost/functional/hash/hash.hpp 2008-01-21 16:37:04 EST (Mon, 21 Jan 2008)
@@ -46,8 +46,8 @@
 #endif
     
 #if defined(BOOST_HAS_LONG_LONG)
- std::size_t hash_value(long long);
- std::size_t hash_value(unsigned long long);
+ std::size_t hash_value(boost::long_long_type);
+ std::size_t hash_value(boost::ulong_long_type);
 #endif
 
 #if !BOOST_WORKAROUND(__DMC__, <= 0x848)
@@ -195,12 +195,12 @@
 #endif
 
 #if defined(BOOST_HAS_LONG_LONG)
- inline std::size_t hash_value(long long v)
+ inline std::size_t hash_value(boost::long_long_type v)
     {
         return hash_detail::hash_value_signed(v);
     }
 
- inline std::size_t hash_value(unsigned long long v)
+ inline std::size_t hash_value(boost::ulong_long_type v)
     {
         return hash_detail::hash_value_unsigned(v);
     }

Modified: branches/unordered/trunk/libs/functional/hash/test/hash_number_test.cpp
==============================================================================
--- branches/unordered/trunk/libs/functional/hash/test/hash_number_test.cpp (original)
+++ branches/unordered/trunk/libs/functional/hash/test/hash_number_test.cpp 2008-01-21 16:37:04 EST (Mon, 21 Jan 2008)
@@ -150,8 +150,8 @@
     NUMERIC_TEST(unsigned long, ulong)
 
 #if defined(BOOST_HAS_LONG_LONG)
- NUMERIC_TEST_NO_LIMITS(long long, hash_longlong)
- NUMERIC_TEST_NO_LIMITS(unsigned long long, ulonglong)
+ NUMERIC_TEST_NO_LIMITS(boost::long_long_type, long_long)
+ NUMERIC_TEST_NO_LIMITS(boost::ulong_long_type, ulong_long)
 #endif
 
     NUMERIC_TEST(float, float)


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