Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52773 - trunk/boost/units
From: steven_at_[hidden]
Date: 2009-05-05 16:00:47


Author: steven_watanabe
Date: 2009-05-05 16:00:46 EDT (Tue, 05 May 2009)
New Revision: 52773
URL: http://svn.boost.org/trac/boost/changeset/52773

Log:
Allow specifing the default conversion using either base units or units.
Text files modified:
   trunk/boost/units/conversion.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/units/conversion.hpp
==============================================================================
--- trunk/boost/units/conversion.hpp (original)
+++ trunk/boost/units/conversion.hpp 2009-05-05 16:00:46 EDT (Tue, 05 May 2009)
@@ -115,7 +115,7 @@
     struct unscaled_get_default_conversion<unscale<Source>::type> \
     { \
         static const bool is_defined = true; \
- typedef Dest type; \
+ typedef Dest::unit_type type; \
     }; \
     } \
     } \
@@ -134,7 +134,7 @@
     struct unscaled_get_default_conversion<Source> \
     { \
         static const bool is_defined = true; \
- typedef Dest type; \
+ typedef typename Dest::unit_type type; \
     }; \
     } \
     } \


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