Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54480 - sandbox/numeric_adaptor/boost/numeric_adaptor
From: bruno.lalande_at_[hidden]
Date: 2009-06-28 18:15:54


Author: bruno.lalande
Date: 2009-06-28 18:15:53 EDT (Sun, 28 Jun 2009)
New Revision: 54480
URL: http://svn.boost.org/trac/boost/changeset/54480

Log:
Renamed a misnamed template parameter.
Text files modified:
   sandbox/numeric_adaptor/boost/numeric_adaptor/default_policy.hpp | 22 +++++++++++-----------
   1 files changed, 11 insertions(+), 11 deletions(-)

Modified: sandbox/numeric_adaptor/boost/numeric_adaptor/default_policy.hpp
==============================================================================
--- sandbox/numeric_adaptor/boost/numeric_adaptor/default_policy.hpp (original)
+++ sandbox/numeric_adaptor/boost/numeric_adaptor/default_policy.hpp 2009-06-28 18:15:53 EDT (Sun, 28 Jun 2009)
@@ -17,7 +17,7 @@
 namespace boost { namespace numeric_adaptor {
 
 
-template <typename Base, typename T>
+template <typename Derived, typename T>
 struct default_policy
 {
     typedef T value_type;
@@ -51,32 +51,32 @@
 
     static inline void cos(value_type& r, value_type const& a)
     {
- double d = Base::template big_numeric_cast<double>(a);
- Base::set(r, std::cos(d));
+ double d = Derived::template big_numeric_cast<double>(a);
+ Derived::set(r, std::cos(d));
     }
 
     static inline void sin(value_type& r, value_type const& a)
     {
- double d = Base::template big_numeric_cast<double>(a);
- Base::set(r, std::sin(d));
+ double d = Derived::template big_numeric_cast<double>(a);
+ Derived::set(r, std::sin(d));
     }
 
     static inline void tan(value_type& r, value_type const& a)
     {
- double d = Base::template big_numeric_cast<double>(a);
- Base::set(r, std::tan(d));
+ double d = Derived::template big_numeric_cast<double>(a);
+ Derived::set(r, std::tan(d));
     }
 
     static inline void atan(value_type& r, value_type const& a)
     {
- double d = Base::template big_numeric_cast<double>(a);
- Base::set(r, std::atan(d));
+ double d = Derived::template big_numeric_cast<double>(a);
+ Derived::set(r, std::atan(d));
     }
 
     static inline void sqrt(value_type& r, value_type const& a)
     {
- double d = Base::template big_numeric_cast<double>(a);
- Base::set(r, std::sqrt(d));
+ double d = Derived::template big_numeric_cast<double>(a);
+ Derived::set(r, std::sqrt(d));
     }
 
     // Default use the comparison operators


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