Boost logo

Boost-Commit :

From: boost_at_[hidden]
Date: 2008-06-01 12:23:06


Author: matthiasschabel
Date: 2008-06-01 12:23:06 EDT (Sun, 01 Jun 2008)
New Revision: 46015
URL: http://svn.boost.org/trac/boost/changeset/46015

Log:
nothing wrong, just didn't understand the code at 3am...
Text files modified:
   sandbox/units/libs/units/example/runtime_unit.cpp | 7 ++-----
   1 files changed, 2 insertions(+), 5 deletions(-)

Modified: sandbox/units/libs/units/example/runtime_unit.cpp
==============================================================================
--- sandbox/units/libs/units/example/runtime_unit.cpp (original)
+++ sandbox/units/libs/units/example/runtime_unit.cpp 2008-06-01 12:23:06 EDT (Sun, 01 Jun 2008)
@@ -32,20 +32,17 @@
     return(boost::units::hypot(t, 2.0 * si::meters));
 }
 
-// enter "return meter", then 3.4 centimeter
-// -> gives 2.00029 meter as output?
-
 int main()
 {
     known_units["meter"] = 1.0 * si::meters;
- known_units["centimeter"] = .01 * si::meters;;
+ known_units["centimeter"] = .01 * si::meters;
     known_units["foot"] =
         conversion_factor(foot_base_unit::unit_type(), si::meter) * si::meter;
         
     std::string output_type("meter");
     std::string input;
     
- while((std::cout << ">") && (std::cin >> input))
+ while((std::cout << "> ") && (std::cin >> input))
     {
         if(!input.empty() && input[0] == '#')
         {


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