Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units/detail
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv14952/boost-sandbox/boost/units/detail
Modified Files:
conversion_impl.hpp
Log Message:
Removed extra square in static_int_power_impl
Index: conversion_impl.hpp
===================================================================
RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/detail/conversion_impl.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- conversion_impl.hpp 9 Apr 2007 18:01:19 -0000 1.4
+++ conversion_impl.hpp 9 Apr 2007 18:35:01 -0000 1.5
@@ -167,6 +167,16 @@
};
template<>
+struct static_int_power_impl<1, false>
+{
+ template<class Y, class R>
+ static Y apply(const Y& y, const R& r)
+ {
+ return(y * r);
+ }
+};
+
+template<>
struct static_int_power_impl<0, true>
{
template<class Y, class R>
|