$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: steven_at_[hidden]
Date: 2008-06-28 17:14:02
Author: steven_watanabe
Date: 2008-06-28 17:14:02 EDT (Sat, 28 Jun 2008)
New Revision: 46829
URL: http://svn.boost.org/trac/boost/changeset/46829
Log:
First move towards Borland support
Text files modified: 
   trunk/boost/units/static_rational.hpp |    10 ++++++----                              
   1 files changed, 6 insertions(+), 4 deletions(-)
Modified: trunk/boost/units/static_rational.hpp
==============================================================================
--- trunk/boost/units/static_rational.hpp	(original)
+++ trunk/boost/units/static_rational.hpp	2008-06-28 17:14:02 EDT (Sat, 28 Jun 2008)
@@ -63,26 +63,28 @@
 class static_rational
 {
     private:
+        typedef static_rational self_type;
+
         static const integer_type   nabs = static_abs<N>::value,
                                     dabs = static_abs<D>::value;
         
         /// greatest common divisor of N and D
         // need cast to signed because static_gcd returns unsigned long
         static const integer_type   den = 
-            static_cast<integer_type>(boost::math::static_gcd<nabs,dabs>::value) * ((D < 0) ? -1 : 1);
+            static_cast<integer_type>(boost::math::static_gcd<self_type::nabs,self_type::dabs>::value) * ((D < 0) ? -1 : 1);
         
     public: 
         // for mpl arithmetic support
         typedef detail::static_rational_tag tag;
         
-        static const integer_type   Numerator = N/den,
-                                    Denominator = D/den;
+        static const integer_type   Numerator = N/self_type::den,
+            Denominator = D/self_type::den;
         
         /// INTERNAL ONLY
         typedef static_rational<N,D>    this_type;
         
         /// static_rational<N,D> reduced by GCD
-        typedef static_rational<Numerator,Denominator>  type;
+        typedef static_rational<self_type::Numerator,self_type::Denominator>  type;
                                  
         static integer_type numerator()      { return Numerator; }
         static integer_type denominator()    { return Denominator; }