Boost logo

Boost :

Subject: Re: [boost] [lexical_cast] char types and UDTs
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2012-04-12 10:22:03

On 12/04/12 14:24, Antony Polukhin wrote:
> 12.04.2012 15:20 "Mathias Gaunard"<mathias.gaunard_at_[hidden]>:
>> 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.

Boost list run by bdawes at, gregod at, cpdaniel at, john at