Boost logo

Boost-Commit :

From: steven_at_[hidden]
Date: 2008-07-09 23:55:08


Author: steven_watanabe
Date: 2008-07-09 23:55:08 EDT (Wed, 09 Jul 2008)
New Revision: 47283
URL: http://svn.boost.org/trac/boost/changeset/47283

Log:
Pathscale again
Text files modified:
   trunk/boost/units/detail/conversion_impl.hpp | 16 ++++++++++------
   1 files changed, 10 insertions(+), 6 deletions(-)

Modified: trunk/boost/units/detail/conversion_impl.hpp
==============================================================================
--- trunk/boost/units/detail/conversion_impl.hpp (original)
+++ trunk/boost/units/detail/conversion_impl.hpp 2008-07-09 23:55:08 EDT (Wed, 09 Jul 2008)
@@ -113,7 +113,8 @@
     static const bool is_defined = true;
     typedef one type;
     static type value() {
- return(one());
+ one result;
+ return(result);
     }
 };
 
@@ -172,7 +173,8 @@
         typedef do_call_base_unit_converter<Dest, typename Source::unit_type> converter;
         typedef typename divide_typeof_helper<one, typename converter::type>::type type;
         static type value() {
- return(one() / converter::value());
+ one numerator;
+ return(numerator / converter::value());
         }
     };
 };
@@ -232,8 +234,9 @@
     {
         typedef unit<dimensionless_type, heterogeneous_system<heterogeneous_system_impl<dimensionless_type, dimensionless_type, no_scale> > > unit_type;
         typedef one type;
- static type value() {
- return(type());
+ static one value() {
+ one result;
+ return(result);
         }
     };
 };
@@ -322,7 +325,7 @@
     struct apply
     {
         typedef one type;
- static type value() { return(one()); }
+ static type value() { one result; return(result); }
     };
 };
 
@@ -482,7 +485,8 @@
     typedef typename multiply_typeof_helper<typename impl::type, typename scale::type>::type type;
     static type value()
     {
- return(one() / (impl::value() * scale::value()));
+ one numerator;
+ return(numerator / (impl::value() * scale::value()));
     }
 };
 


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