13 Aug
2022
13 Aug
'22
12:01 p.m.
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.