Boost logo

Boost-Commit :

From: boost_at_[hidden]
Date: 2008-05-26 13:34:34


Author: matthiasschabel
Date: 2008-05-26 13:34:33 EDT (Mon, 26 May 2008)
New Revision: 45780
URL: http://svn.boost.org/trac/boost/changeset/45780

Log:
minor tweaks
Text files modified:
   sandbox/units/boost/units/systems/abstract.hpp | 20 ++++++++++----------
   sandbox/units/libs/units/example/composite_output.cpp | 4 +---
   2 files changed, 11 insertions(+), 13 deletions(-)

Modified: sandbox/units/boost/units/systems/abstract.hpp
==============================================================================
--- sandbox/units/boost/units/systems/abstract.hpp (original)
+++ sandbox/units/boost/units/systems/abstract.hpp 2008-05-26 13:34:33 EDT (Mon, 26 May 2008)
@@ -35,15 +35,15 @@
 
 namespace abstract {
 
-struct length_unit_tag : base_unit<length_unit_tag, length_dimension, -30> {};
-struct mass_unit_tag : base_unit<mass_unit_tag, mass_dimension, -29> {};
-struct time_unit_tag : base_unit<time_unit_tag, time_dimension, -28> {};
-struct current_unit_tag : base_unit<current_unit_tag, current_dimension, -27> {};
-struct temperature_unit_tag : base_unit<temperature_unit_tag, temperature_dimension, -26> {};
-struct amount_unit_tag : base_unit<amount_unit_tag, amount_dimension, -25> {};
-struct luminous_intensity_unit_tag : base_unit<luminous_intensity_unit_tag, luminous_intensity_dimension, -24> {};
-struct plane_angle_unit_tag : base_unit<plane_angle_unit_tag, plane_angle_dimension, -23> {};
-struct solid_angle_unit_tag : base_unit<solid_angle_unit_tag, solid_angle_dimension, -22> {};
+struct length_unit_tag : base_unit<length_unit_tag, length_dimension, -30> { };
+struct mass_unit_tag : base_unit<mass_unit_tag, mass_dimension, -29> { };
+struct time_unit_tag : base_unit<time_unit_tag, time_dimension, -28> { };
+struct current_unit_tag : base_unit<current_unit_tag, current_dimension, -27> { };
+struct temperature_unit_tag : base_unit<temperature_unit_tag, temperature_dimension, -26> { };
+struct amount_unit_tag : base_unit<amount_unit_tag, amount_dimension, -25> { };
+struct luminous_intensity_unit_tag : base_unit<luminous_intensity_unit_tag, luminous_intensity_dimension, -24> { };
+struct plane_angle_unit_tag : base_unit<plane_angle_unit_tag, plane_angle_dimension, -23> { };
+struct solid_angle_unit_tag : base_unit<solid_angle_unit_tag, solid_angle_dimension, -22> { };
 
 typedef make_system<
     length_unit_tag,
@@ -121,7 +121,7 @@
 template<>
 struct base_unit_info<abstract::plane_angle_unit_tag>
 {
- static std::string name() { return "[Planar Angle]"; }
+ static std::string name() { return "[Plane Angle]"; }
     static std::string symbol() { return "[QP]"; }
 };
 

Modified: sandbox/units/libs/units/example/composite_output.cpp
==============================================================================
--- sandbox/units/libs/units/example/composite_output.cpp (original)
+++ sandbox/units/libs/units/example/composite_output.cpp 2008-05-26 13:34:33 EDT (Mon, 26 May 2008)
@@ -51,9 +51,7 @@
         using boost::units::cgs::gram;
         using boost::units::cgs::second;
         using boost::units::cgs::dyne;
-
- scale<10,static_rational<-9> > s;
-
+
         si::nano*si::farad;
         1.0*si::nano*si::farad;
         


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