Boost logo

Boost-Commit :

From: boost_at_[hidden]
Date: 2008-05-26 23:55:38


Author: matthiasschabel
Date: 2008-05-26 23:55:38 EDT (Mon, 26 May 2008)
New Revision: 45808
URL: http://svn.boost.org/trac/boost/changeset/45808

Log:
note corrected behavior
Text files modified:
   sandbox/units/libs/units/example/composite_output.cpp | 5 +----
   1 files changed, 1 insertions(+), 4 deletions(-)

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 23:55:38 EDT (Mon, 26 May 2008)
@@ -72,8 +72,7 @@
     std::cout << symbol_string(scale<10,static_rational<-9> >()) << std::endl;
     std::cout << name_string(scale<10,static_rational<-9> >()) << std::endl;
 
- // wrong! - should output "n" and "nano", respectively
- std::cout << simplify_typename(si::nano) << std::endl;
+ //std::cout << simplify_typename(si::nano) << std::endl;
     
     std::cout << symbol_string(si::nano) << std::endl;
     std::cout << name_string(si::nano) << std::endl;
@@ -84,7 +83,6 @@
     std::cout << name_format << 1.0*si::farad << std::endl;
     std::cout << symbol_format << 1.0*si::farad << std::endl;
     
- // wrong! - should output "nF" and "nanofarad", respectively
     std::cout << symbol_string(si::farad*si::nano) << std::endl;
     std::cout << name_string(si::farad*si::nano) << std::endl;
     
@@ -92,7 +90,6 @@
 // std::cout << symbol_string(si::nano*1.0*si::farad) << std::endl;
 // std::cout << name_string(1.0*si::nano*si::farad) << std::endl;
 
- // wrong! - should output "n(cm g s^-1)" and "nano(centimeter gram second^-1)", respectively
     std::cout << symbol_string(si::nano*gram*centimeter/second) << std::endl;
     std::cout << name_string(si::nano*gram*centimeter/second) << std::endl;
 }


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