Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54594 - trunk/boost/units/detail
From: steven_at_[hidden]
Date: 2009-07-02 15:34:00


Author: steven_watanabe
Date: 2009-07-02 15:33:59 EDT (Thu, 02 Jul 2009)
New Revision: 54594
URL: http://svn.boost.org/trac/boost/changeset/54594

Log:
Supress warning in conversions.
Text files modified:
   trunk/boost/units/detail/conversion_impl.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/units/detail/conversion_impl.hpp
==============================================================================
--- trunk/boost/units/detail/conversion_impl.hpp (original)
+++ trunk/boost/units/detail/conversion_impl.hpp 2009-07-02 15:33:59 EDT (Thu, 02 Jul 2009)
@@ -342,7 +342,7 @@
     {
         Unit1 u1;
         Unit2 u2;
- return(destination_type::from_value(source.value() * conversion_factor(u1, u2)));
+ return(destination_type::from_value(static_cast<T2>(source.value() * conversion_factor(u1, u2))));
     }
 };
 


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