Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53175 - trunk/boost/functional/hash/detail
From: daniel_james_at_[hidden]
Date: 2009-05-22 09:35:57


Author: danieljames
Date: 2009-05-22 09:35:56 EDT (Fri, 22 May 2009)
New Revision: 53175
URL: http://svn.boost.org/trac/boost/changeset/53175

Log:
Rename struct to avoid using 'type::'type' which confuses some
compilers.
Text files modified:
   trunk/boost/functional/hash/detail/float_functions.hpp | 16 ++++++++--------
   1 files changed, 8 insertions(+), 8 deletions(-)

Modified: trunk/boost/functional/hash/detail/float_functions.hpp
==============================================================================
--- trunk/boost/functional/hash/detail/float_functions.hpp (original)
+++ trunk/boost/functional/hash/detail/float_functions.hpp 2009-05-22 09:35:56 EDT (Fri, 22 May 2009)
@@ -114,7 +114,7 @@
             
             // Use Access for result
 
- struct type : Access::BOOST_NESTED_TEMPLATE call<Float>
+ struct result : Access::BOOST_NESTED_TEMPLATE call<Float>
             {
                 BOOST_STATIC_CONSTANT(bool, value = true);
             };
@@ -140,7 +140,7 @@
 
             // Result for nothing found.
 
- struct type
+ struct result
             {
                 BOOST_STATIC_CONSTANT(bool, value = false);
             };
@@ -159,18 +159,18 @@
         struct call_ldexp<float> : select_impl
                 :: x<float, detect::ldexp_access>::type
                 :: x<float, detect::ldexpf_access>::type
- :: type {};
+ :: result {};
 
         template <>
         struct call_ldexp<double> : select_impl
                 :: x<double, detect::ldexp_access>::type
- :: type {};
+ :: result {};
 
         template <>
         struct call_ldexp<long double> : select_impl
                 :: x<long double, detect::ldexp_access>::type
                 :: x<long double, detect::ldexpl_access>::type
- :: type {};
+ :: result {};
 
 
         // call_frexp
@@ -186,18 +186,18 @@
         struct call_frexp<float> : select_impl
                 :: x<float, detect::frexp_access>::type
                 :: x<float, detect::frexpf_access>::type
- :: type {};
+ :: result {};
 
         template <>
         struct call_frexp<double> : select_impl
                 :: x<double, detect::frexp_access>::type
- :: type {};
+ :: result {};
 
         template <>
         struct call_frexp<long double> : select_impl
                 :: x<long double, detect::frexp_access>::type
                 :: x<long double, detect::frexpl_access>::type
- :: type {};
+ :: result {};
 
         // has_float_functions
         //


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