Boost logo

Boost-Commit :

From: boost_at_[hidden]
Date: 2008-05-21 01:33:34


Author: matthiasschabel
Date: 2008-05-21 01:33:34 EDT (Wed, 21 May 2008)
New Revision: 45597
URL: http://svn.boost.org/trac/boost/changeset/45597

Log:
shouldn't need explicit namespace qualification of pow now
Text files modified:
   sandbox/units/libs/units/example/quaternion.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: sandbox/units/libs/units/example/quaternion.cpp
==============================================================================
--- sandbox/units/libs/units/example/quaternion.cpp (original)
+++ sandbox/units/libs/units/example/quaternion.cpp 2008-05-21 01:33:34 EDT (Wed, 21 May 2008)
@@ -200,7 +200,7 @@
               << "L-L = " << L-L << std::endl
               << "L*L = " << L*L << std::endl
               << "L/L = " << L/L << std::endl
- << "L^3 = " << boost::units::pow<3>(L) << std::endl // compiles if disambiguated
+ << "L^3 = " << pow<3>(L) << std::endl
 // << "L^(3/2) = " << pow< static_rational<3,2> >(L) << std::endl
 // << "3vL = " << root<3>(L) << std::endl
 // << "(3/2)vL = " << root< static_rational<3,2> >(L) << std::endl
@@ -220,7 +220,7 @@
               << "L-L = " << L-L << std::endl
 // << "L*L = " << L*L << std::endl
 // << "L/L = " << L/L << std::endl
- << "L^3 = " << boost::units::pow<3>(L) << std::endl // compiles if disambiguated
+ << "L^3 = " << pow<3>(L) << std::endl
 // << "L^(3/2) = " << pow< static_rational<3,2> >(L) << std::endl
 // << "3vL = " << root<3>(L) << std::endl
 // << "(3/2)vL = " << root< static_rational<3,2> >(L) << std::endl


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