Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53579 - sandbox/numeric_adaptor/boost/numeric_adaptor
From: bruno.lalande_at_[hidden]
Date: 2009-06-02 18:03:13


Author: bruno.lalande
Date: 2009-06-02 18:03:12 EDT (Tue, 02 Jun 2009)
New Revision: 53579
URL: http://svn.boost.org/trac/boost/changeset/53579

Log:
Yet another bunch of forgotten value_type's...
Text files modified:
   sandbox/numeric_adaptor/boost/numeric_adaptor/cln_policy.hpp | 4 ++--
   sandbox/numeric_adaptor/boost/numeric_adaptor/ieee_policy.hpp | 22 +++++++++++-----------
   2 files changed, 13 insertions(+), 13 deletions(-)

Modified: sandbox/numeric_adaptor/boost/numeric_adaptor/cln_policy.hpp
==============================================================================
--- sandbox/numeric_adaptor/boost/numeric_adaptor/cln_policy.hpp (original)
+++ sandbox/numeric_adaptor/boost/numeric_adaptor/cln_policy.hpp 2009-06-02 18:03:12 EDT (Tue, 02 Jun 2009)
@@ -85,8 +85,8 @@
             to the C built-in types `float' and `double' are provided
             through the functions
 
- float float_approx (type const& x)
- double double_approx (type const& x)
+ float float_approx (value_type const& x)
+ double double_approx (value_type const& x)
 
             Returns an approximation of x of C type ctype. If abs(x) is
             too close to 0 (underflow),

Modified: sandbox/numeric_adaptor/boost/numeric_adaptor/ieee_policy.hpp
==============================================================================
--- sandbox/numeric_adaptor/boost/numeric_adaptor/ieee_policy.hpp (original)
+++ sandbox/numeric_adaptor/boost/numeric_adaptor/ieee_policy.hpp 2009-06-02 18:03:12 EDT (Tue, 02 Jun 2009)
@@ -29,26 +29,26 @@
 template <typename T>
 struct ieee_policy : public default_policy<T>
 {
- typedef T type;
+ typedef T value_type;
 
     template <typename OtherType>
- static inline void set(type& value, OtherType const& v) { value = v; } //boost::numeric_cast<T>(v); }
+ static inline void set(value_type& value, OtherType const& v) { value = v; } //boost::numeric_cast<T>(v); }
 
- static inline void set(type& value, std::string const& v) { value = boost::lexical_cast<T>(v); }
+ static inline void set(value_type& value, std::string const& v) { value = boost::lexical_cast<T>(v); }
 
- static inline void sqrt(type& r, type const& a) { r = std::sqrt(a); }
- static inline void cos(type& r, type const& a) { r = std::cos(a); }
- static inline void sin(type& r, type const& a) { r = std::sin(a); }
- static inline void tan(type& r, type const& a) { r = std::tan(a); }
- static inline void atan(type& r, type const& a) { r = std::atan(a); }
- static inline void abs(type& r, type const& a) { r = std::abs(a); }
- static inline void hypot(type& r, type const& a, type const& b)
+ static inline void sqrt(value_type& r, value_type const& a) { r = std::sqrt(a); }
+ static inline void cos(value_type& r, value_type const& a) { r = std::cos(a); }
+ static inline void sin(value_type& r, value_type const& a) { r = std::sin(a); }
+ static inline void tan(value_type& r, value_type const& a) { r = std::tan(a); }
+ static inline void atan(value_type& r, value_type const& a) { r = std::atan(a); }
+ static inline void abs(value_type& r, value_type const& a) { r = std::abs(a); }
+ static inline void hypot(value_type& r, value_type const& a, value_type const& b)
     {
         r = boost::math::hypot(a, b);
     }
 
     template <typename OtherType>
- static inline OtherType big_numeric_cast(type const& v)
+ static inline OtherType big_numeric_cast(value_type const& v)
     {
         return boost::numeric_cast<OtherType>(v);
     }


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