Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50497 - trunk/boost/units
From: steven_at_[hidden]
Date: 2009-01-06 15:17:17


Author: steven_watanabe
Date: 2009-01-06 15:17:16 EST (Tue, 06 Jan 2009)
New Revision: 50497
URL: http://svn.boost.org/trac/boost/changeset/50497

Log:
Minor doc fixes for power/root_typeof_helper
Text files modified:
   trunk/boost/units/operators.hpp | 14 ++++++++++----
   1 files changed, 10 insertions(+), 4 deletions(-)

Modified: trunk/boost/units/operators.hpp
==============================================================================
--- trunk/boost/units/operators.hpp (original)
+++ trunk/boost/units/operators.hpp 2009-01-06 15:17:16 EST (Tue, 06 Jan 2009)
@@ -120,11 +120,14 @@
 
 #ifdef BOOST_UNITS_DOXYGEN
 
-/// A helper for computing the result of
-/// raising a runtime object to a compile time
+/// A helper used by @c pow to raise
+/// a runtime object to a compile time
 /// known exponent. This template is intended to
 /// be specialized. All specializations must
 /// conform to the interface shown here.
+/// @c Exponent will be either the exponent
+/// passed to @c pow or @c static_rational<N>
+/// for and integer argument, N.
 template<typename BaseType, typename Exponent>
 struct power_typeof_helper
 {
@@ -134,18 +137,21 @@
     static type value(const BaseType& base);
 };
 
-/// A helper for computing taking a root
+/// A helper used by @c root to take a root
 /// of a runtime object using a compile time
 /// known index. This template is intended to
 /// be specialized. All specializations must
 /// conform to the interface shown here.
+/// @c Index will be either the type
+/// passed to @c pow or @c static_rational<N>
+/// for and integer argument, N.
 template<typename Radicand, typename Index>
 struct root_typeof_helper
 {
     /// specifies the result type
     typedef detail::unspecified type;
     /// Carries out the runtime calculation.
- static type value(const BaseType& base);
+ static type value(const Radicand& base);
 };
 
 #endif


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