
12 Apr
2012
12 Apr
'12
2:22 p.m.
On 12/04/12 14:24, Antony Polukhin wrote:
12.04.2012 15:20 "Mathias Gaunard"<mathias.gaunard@ens-lyon.org>:
Why is lexical_cast so complicated and full and quirks?
All that stuff looks messy and over-engineered.
That was an example of lexical_cast with all the wishes implemented.
Current implementation is simple, and user only required to provide stream operators<< and>> to work with it.
Yes, but apparently, that doesn't work with user-defined wide string types. Having to implement three traits that each must provide conversion facilities to all of char*, wchar_t*, char16_t* and char32_t* seems a bit much. Surely there must be a simpler solution.