$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: steven_at_[hidden]
Date: 2008-07-03 18:48:00
Author: steven_watanabe
Date: 2008-07-03 18:48:00 EDT (Thu, 03 Jul 2008)
New Revision: 47058
URL: http://svn.boost.org/trac/boost/changeset/47058
Log:
Fix more pathscale problems with one()
Text files modified: 
   trunk/boost/units/detail/static_rational_power.hpp |    14 +++++++++-----                          
   1 files changed, 9 insertions(+), 5 deletions(-)
Modified: trunk/boost/units/detail/static_rational_power.hpp
==============================================================================
--- trunk/boost/units/detail/static_rational_power.hpp	(original)
+++ trunk/boost/units/detail/static_rational_power.hpp	2008-07-03 18:48:00 EDT (Thu, 03 Jul 2008)
@@ -2,7 +2,7 @@
 // unit/quantity manipulation and conversion
 //
 // Copyright (C) 2003-2008 Matthias Christian Schabel
-// Copyright (C) 2008 Steven Watanabe
+// Copyright (C) 2007-2008 Steven Watanabe
 //
 // Distributed under the Boost Software License, Version 1.0. (See
 // accompanying file LICENSE_1_0.txt or copy at
@@ -63,7 +63,8 @@
     typedef one type;
     static one call(const one&)
     {
-        return(one());
+        one result;
+        return(result);
     }
 };
 
@@ -73,7 +74,8 @@
     typedef one type;
     static one call(const one&)
     {
-        return(one());
+        one result;
+        return(result);
     }
 };
 
@@ -156,7 +158,8 @@
         typedef typename impl::type type;
         static type call(const Y& y)
         {
-            return(impl::call(y, one()));
+            one result;
+            return(impl::call(y, result));
         }
     };
 };
@@ -171,7 +174,8 @@
         typedef typename divide_typeof_helper<one, typename impl::type>::type type;
         static type call(const Y& y)
         {
-            return(one()/impl::call(y, one()));
+            one result;
+            return(result/impl::call(y, result));
         }
     };
 };