Boost logo

Boost-Commit :

From: steven_at_[hidden]
Date: 2008-05-15 00:31:06


Author: steven_watanabe
Date: 2008-05-15 00:31:05 EDT (Thu, 15 May 2008)
New Revision: 45382
URL: http://svn.boost.org/trac/boost/changeset/45382

Log:
Improved docs for dim
Text files modified:
   sandbox/units/boost/units/dim.hpp | 15 ++++++---------
   sandbox/units/boost/units/dimension.hpp | 6 +-----
   2 files changed, 7 insertions(+), 14 deletions(-)

Modified: sandbox/units/boost/units/dim.hpp
==============================================================================
--- sandbox/units/boost/units/dim.hpp (original)
+++ sandbox/units/boost/units/dim.hpp 2008-05-15 00:31:05 EDT (Thu, 15 May 2008)
@@ -2,7 +2,7 @@
 // unit/quantity manipulation and conversion
 //
 // Copyright (C) 2003-2007 Matthias Christian Schabel
-// Copyright (C) 2007 Steven Watanabe
+// Copyright (C) 2007-2008 Steven Watanabe
 //
 // Distributed under the Boost Software License, Version 1.0. (See
 // accompanying file LICENSE_1_0.txt or copy at
@@ -44,20 +44,17 @@
 /// be a derived from a specialization of @c base_dimension.
 /// Specialization of the following Boost.MPL metafunctions are provided
 ///
-/// @c mpl::plus for two @c dims
-///
-/// @c mpl::minus for two @c dims
-///
-/// @c mpl::negate for a @c dim
+/// - @c mpl::plus for two @c dims
+/// - @c mpl::minus for two @c dims
+/// - @c mpl::negate for a @c dim
 ///
 /// These metafunctions all operate on the exponent, and require
 /// that the @c dim operands have the same base dimension tag.
 /// In addition, multiplication and division by @c static_rational
 /// is supported.
 ///
-/// @c mpl::times for a @c static_rational and a @c dim in either order
-///
-/// @c mpl::divides for a @c static_rational and a @c dim in either order
+/// - @c mpl::times for a @c static_rational and a @c dim in either order
+/// - @c mpl::divides for a @c static_rational and a @c dim in either order
 ///
 /// These metafunctions likewise operate on the exponent only.
 template<typename T,typename V>

Modified: sandbox/units/boost/units/dimension.hpp
==============================================================================
--- sandbox/units/boost/units/dimension.hpp (original)
+++ sandbox/units/boost/units/dimension.hpp 2008-05-15 00:31:05 EDT (Thu, 15 May 2008)
@@ -2,7 +2,7 @@
 // unit/quantity manipulation and conversion
 //
 // Copyright (C) 2003-2007 Matthias Christian Schabel
-// Copyright (C) 2007 Steven Watanabe
+// Copyright (C) 2007-2008 Steven Watanabe
 //
 // Distributed under the Boost Software License, Version 1.0. (See
 // accompanying file LICENSE_1_0.txt or copy at
@@ -19,8 +19,6 @@
 #include <boost/mpl/begin.hpp>
 #include <boost/mpl/size.hpp>
 
-#include <boost/units/dim.hpp>
-#include <boost/units/operators.hpp>
 #include <boost/units/static_rational.hpp>
 #include <boost/units/detail/dimension_list.hpp>
 #include <boost/units/detail/dimension_impl.hpp>
@@ -32,8 +30,6 @@
 
 namespace units {
 
-struct S;
-
 /// Reduce dimension list to cardinal form. This algorithm collapses duplicate
 /// base dimension tags and sorts the resulting list by the tag ordinal value.
 /// Dimension lists that resolve to the same dimension are guaranteed to be


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