From bb90a37460216f42e5c7480af5191ab138ba2efe Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Wed, 1 May 2024 10:25:10 -0500 Subject: [PATCH] xo-unit: streamline xquantity printing, match quantity printing --- include/xo/unit/xquantity_iostream.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/xo/unit/xquantity_iostream.hpp b/include/xo/unit/xquantity_iostream.hpp index 402c77d8..0eb6ce95 100644 --- a/include/xo/unit/xquantity_iostream.hpp +++ b/include/xo/unit/xquantity_iostream.hpp @@ -17,10 +17,14 @@ namespace xo { operator<< (std::ostream & os, const Quantity & x) { + os << x.scale() << x.abbrev(); + +#ifdef NOT_USING os << ""; +#endif return os; }