
Steven Watanabe wrote:
The scope should not include any facilities for input and output. It should also not prevent such support however. (Input and output of units and measures can be handled by extending C++ locales with new facets. C++ locales already deal with I/O of time and money. More about internalization and localization below.)
Input is definitely beyond the scope of the library. We have implemented primitive output.... On further thought, we should probably just have an output operator for quantity that prints the value_type then the unit and leave unit output alone.
That sounds sensible: I can imagine wanting to just log values and having a default << operator is a big help. Users can provide more specialised << operators for specific units if that what they want. Just my rather uninformed 2c.... Regards, John.