8 Oct
2025
8 Oct
'25
5:04 p.m.
Matt Borland wrote:
What about something like the following:
decimal64_t dec = make_decimal64(const std::string&)
or decimal64_t dec = make_decimal64(std::string_view)
I think that's fine. If that function behaves like the UDL operator (assuming this will be modified to accept a leading plus), it would be convenient as a lightweight conversion function for casual use. As for naming, considering consistency with the bit conversion functions could be one possible idea. Regards, Michel