Boost logo

Boost-Commit :

From: steven_at_[hidden]
Date: 2008-05-13 15:38:41


Author: steven_watanabe
Date: 2008-05-13 15:38:41 EDT (Tue, 13 May 2008)
New Revision: 45338
URL: http://svn.boost.org/trac/boost/changeset/45338

Log:
Removed conversion_factor overload that takes an explicit return type, since it provides no benefits over the one that deduces the return type
Text files modified:
   sandbox/units/boost/units/conversion.hpp | 26 --------------------------
   1 files changed, 0 insertions(+), 26 deletions(-)

Modified: sandbox/units/boost/units/conversion.hpp
==============================================================================
--- sandbox/units/boost/units/conversion.hpp (original)
+++ sandbox/units/boost/units/conversion.hpp 2008-05-13 15:38:41 EDT (Tue, 13 May 2008)
@@ -145,32 +145,6 @@
     return(detail::conversion_factor_helper<FromUnit, ToUnit>::value());
 }
 
-#ifndef BOOST_UNITS_DOXYGEN
-
-/// Find the conversion factor between two units with an explicit return type.
-/// e.g. conversion_factor<int>(newton, dyne) returns 100000
-template<class Y, class FromUnit,class ToUnit>
-inline
-Y
-conversion_factor(const FromUnit&,const ToUnit&)
-{
- return(static_cast<Y>(detail::conversion_factor_helper<FromUnit, ToUnit>::value()));
-}
-
-#else
-
-/// Find the conversion factor between two units with an explicit return type.
-/// e.g. conversion_factor<int>(newton, dyne) returns 100000
-template<class Y, class FromUnit,class ToUnit>
-inline
-Y
-conversion_factor<Y>(const FromUnit&,const ToUnit&)
-{
- return(static_cast<Y>(detail::conversion_factor_helper<FromUnit, ToUnit>::value()));
-}
-
-#endif
-
 } // namespace units
 
 } // namespace boost


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