xo-unit: streamline xquantity printing, match quantity printing
This commit is contained in:
parent
9b8702e26d
commit
bb90a37460
1 changed files with 4 additions and 0 deletions
|
|
@ -17,10 +17,14 @@ namespace xo {
|
|||
operator<< (std::ostream & os,
|
||||
const Quantity<Repr, Int> & x)
|
||||
{
|
||||
os << x.scale() << x.abbrev();
|
||||
|
||||
#ifdef NOT_USING
|
||||
os << "<qty"
|
||||
<< xtag("scale", x.scale())
|
||||
<< xtag("unit", x.unit())
|
||||
<< ">";
|
||||
#endif
|
||||
|
||||
return os;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue