Boost logo

Boost :

Subject: Re: [boost] Formal Review Request: Boost.String.Convert
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2009-02-20 21:04:02

On Thu, Feb 19, 2009 at 10:21 AM, Andrey Semashev
<andrey.semashev_at_[hidden]> wrote:
> Steven Watanabe wrote:
>> The problem with a fully generic convert is that it's a different beast
>> from string conversions. Converting
>> to and from a string can require formatting information that is
>> meaningless for other conversions and
>> which cannot easily be provided by fully generic code.
> This is where tools like Boost.Parameter could come forward. String-related
> conversions may not be the only domain where passing arbitrary parameters to
> the conversion mechanism is desirable.

An interface that can convert between anything and anything else has
to be extremely flexible.

Extremely flexible interfaces are usually deeply flawed. The process
of design (not just in programming) is synonymous with selective
removal of flexibility.

IMO the "mother of all conversions" interface will end up like this:


Emil Dotchevski
Reverge Studios, Inc.

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