Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53248 - trunk/boost/functional/hash/detail
From: daniel_james_at_[hidden]
Date: 2009-05-25 10:27:01


Author: danieljames
Date: 2009-05-25 10:27:00 EDT (Mon, 25 May 2009)
New Revision: 53248
URL: http://svn.boost.org/trac/boost/changeset/53248

Log:
Fix a couple of clumsy errors in the last commit.
Text files modified:
   trunk/boost/functional/hash/detail/float_functions.hpp | 62 ++++++++++++++++++++-------------------
   1 files changed, 32 insertions(+), 30 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-25 10:27:00 EDT (Mon, 25 May 2009)
@@ -118,41 +118,43 @@
                     sizeof(float_type(c99_func(x,y))) \
                         == sizeof(is<type1>)); \
             }; \
- } \
- \
- template <bool x> \
- struct call_##c99_func##_c99 : \
- call_##cpp_func<double> {}; \
- \
- template <> \
- struct call_##c99_func##_c99<true> { \
- typedef type1 float_type; \
                                                                         \
- inline type1 operator()(type1 a, type2 b) const \
- { \
- return c99_func(a, b); \
- } \
- }; \
- \
- template <bool x> \
- struct call_##c99_func##_cpp : \
- call_##c99_func##_c99< \
- ::boost::hash_detail::c99_func##_detect::check::c99 \
- > {}; \
- \
- template <> \
- struct call_##c99_func##_cpp<true> { \
- typedef type1 float_type; \
+ template <bool x> \
+ struct call_c99 : \
+ boost::hash_detail::call_##cpp_func<double> {}; \
+ \
+ template <> \
+ struct call_c99<true> { \
+ typedef type1 float_type; \
+ \
+ template <typename T> \
+ inline type1 operator()(type1 a, T b) const \
+ { \
+ return c99_func(a, b); \
+ } \
+ }; \
                                                                         \
- inline type1 operator()(type1 a, type2 b) const \
- { \
- return cpp_func(a, b); \
- } \
- }; \
+ template <bool x> \
+ struct call_cpp : \
+ call_c99< \
+ ::boost::hash_detail::c99_func##_detect::check::c99 \
+ > {}; \
+ \
+ template <> \
+ struct call_cpp<true> { \
+ typedef type1 float_type; \
+ \
+ template <typename T> \
+ inline type1 operator()(type1 a, T b) const \
+ { \
+ return cpp_func(a, b); \
+ } \
+ }; \
+ } \
                                                                         \
         template <> \
         struct call_##cpp_func<type1> : \
- call_##c99_func##_cpp< \
+ c99_func##_detect::call_cpp< \
                 ::boost::hash_detail::c99_func##_detect::check::cpp \
> {}; \
     } \


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