Boost logo

Boost-Commit :

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


Author: matthiasschabel
Date: 2008-06-01 04:41:11 EDT (Sun, 01 Jun 2008)
New Revision: 46009
URL: http://svn.boost.org/trac/boost/changeset/46009

Log:
raw format still not working...blah
Text files modified:
   sandbox/units/boost/units/io.hpp | 13 ++++++++++---
   1 files changed, 10 insertions(+), 3 deletions(-)

Modified: sandbox/units/boost/units/io.hpp
==============================================================================
--- sandbox/units/boost/units/io.hpp (original)
+++ sandbox/units/boost/units/io.hpp 2008-06-01 04:41:11 EDT (Sun, 01 Jun 2008)
@@ -636,7 +636,15 @@
         return simplify_typename(typename reduce_unit< unit<Dimension,System> >::type());
 }
 
-using io_impl::symbol_string;
+template<class Dimension,class System>
+inline std::string
+symbol_string(const unit<Dimension, System>&)
+{
+ using io_impl::symbol_string;
+ return symbol_string(unit<Dimension,System>());
+}
+
+//using io_impl::symbol_string;
 using io_impl::name_string;
 
 /// Print an @c unit as a list of base units and exponents
@@ -654,8 +662,7 @@
     }
     else if (units::get_format(os) == raw_fmt)
     {
- // need to replace this with raw string
- os << symbol_string(u);
+ os << io_impl::symbol_string(u);
     }
     else if (units::get_format(os) == symbol_fmt)
     {


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