Boost logo

Boost-Commit :

From: eric_at_[hidden]
Date: 2008-05-19 20:06:07


Author: eric_niebler
Date: 2008-05-19 20:06:06 EDT (Mon, 19 May 2008)
New Revision: 45570
URL: http://svn.boost.org/trac/boost/changeset/45570

Log:
fix bug where pow() wasn't finding operator overload in the operators namespace
Text files modified:
   trunk/boost/accumulators/statistics/moment.hpp | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: trunk/boost/accumulators/statistics/moment.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/moment.hpp (original)
+++ trunk/boost/accumulators/statistics/moment.hpp 2008-05-19 20:06:06 EDT (Mon, 19 May 2008)
@@ -35,6 +35,7 @@
     template<typename T, int N>
     T pow(T const &x, mpl::int_<N>)
     {
+ using namespace operators;
         T y = numeric::pow(x, mpl::int_<N/2>());
         T z = y * y;
         return (N % 2) ? (z * x) : z;


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