15 Aug
2022
15 Aug
'22
7:10 p.m.
Am 13.08.22 um 14:01 schrieb John Maddock via Boost:
On 13/08/2022 12:26, Gero Peterhoff via Boost wrote:
Hello, can you please provide the << and >> operators for boost::multiprecision::number as a stream template?
currently (fixed ostream) template
std::ostream& operator<<(std::ostream& os, const number &) useful template
std::basic_ostream & operator<<(std::basic_ostream & stream, const number &) I dodged that when first writing multiprecision because some backends (all those that are external C libraries) have narrow character conversions only.
So far - and somewhat to my surprise - not one person has requested template iostream operators. Do you have a concrete use case?
Best, John.
My game is called "Compatibility" :-) thx Gero