|
Boost-Commit : |
From: steven_at_[hidden]
Date: 2007-12-04 19:33:22
Author: steven_watanabe
Date: 2007-12-04 19:33:21 EST (Tue, 04 Dec 2007)
New Revision: 41728
URL: http://svn.boost.org/trac/boost/changeset/41728
Log:
Fixed description of BOOST_UNITS_DEFINE_BASE_CONVERSION
Text files modified:
sandbox/units/libs/units/doc/units.qbk | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
Modified: sandbox/units/libs/units/doc/units.qbk
==============================================================================
--- sandbox/units/libs/units/doc/units.qbk (original)
+++ sandbox/units/libs/units/doc/units.qbk 2007-12-04 19:33:21 EST (Tue, 04 Dec 2007)
@@ -423,9 +423,13 @@
For most purposes [___BOOST_UNITS_DEFINE_BASE_CONVERSION] will be
sufficient. It defines a conversion between two base units with
-the same dimensions. If you define use different dimensions for
-defining base units then you will need to use the more general form
-[___BOOST_UNITS_DEFINE_CONVERSION] which works for arbitrary units.
+the same dimensions. If you need to use different set of
+dimensions when defining base units then you will
+need to use the more general form [___BOOST_UNITS_DEFINE_CONVERSION]
+which works for arbitrary units. Example: If you are using SI
+and want to define mmHg you cannot do it using [___BOOST_UNITS_DEFINE_BASE_CONVERSION]
+because none of the SI base units has the same dimensions (pressure).
+You need to use [___BOOST_UNITS_DEFINE_CONVERSION](mmHg_base_unit, SI::pressure, ..., ...)
If you need to define a conversion as a template then
you can add _TEMPLATE onto the end of any of the macros.
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