Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50059 - trunk/boost/units
From: steven_at_[hidden]
Date: 2008-12-01 23:05:28


Author: steven_watanabe
Date: 2008-12-01 23:05:27 EST (Mon, 01 Dec 2008)
New Revision: 50059
URL: http://svn.boost.org/trac/boost/changeset/50059

Log:
Add using/typedef to clear the remaining pathscale failures
Text files modified:
   trunk/boost/units/pow.hpp | 6 +++++-
   1 files changed, 5 insertions(+), 1 deletions(-)

Modified: trunk/boost/units/pow.hpp
==============================================================================
--- trunk/boost/units/pow.hpp (original)
+++ trunk/boost/units/pow.hpp 2008-12-01 23:05:27 EST (Mon, 01 Dec 2008)
@@ -60,7 +60,10 @@
 /// raise @c float to a @c static_rational power
 template<long N,long D>
 struct power_typeof_helper<float, static_rational<N,D> >
- : power_typeof_helper<double, static_rational<N,D> > {};
+ : power_typeof_helper<double, static_rational<N,D> > {
+ typedef typename power_typeof_helper<double, static_rational<N,D> >::type type;
+ using power_typeof_helper<double, static_rational<N,D> >::value;
+};
 
 #endif
 
@@ -88,6 +91,7 @@
     : power_typeof_helper<T, static_rational<D,N> > {
         // help pathscale?
         typedef typename power_typeof_helper<T, static_rational<D,N> >::type type;
+ using power_typeof_helper<T, static_rational<D,N> >::value;
 };
 
 #endif


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