Boost logo

Boost :

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

On Tue, Feb 17, 2009 at 11:43 AM, Stewart, Robert
<Robert.Stewart_at_[hidden]> wrote:
> On Tuesday, February 17, 2009 2:39 PM
> Emil Dotchevski wrote:
>> My question is, what is the motivation for the convert function?
>> What's the use case for it that doesn't work with
>> to_string/from_string?
> That was my suggestion to account for both conversion directions and eliminate "string" from the name, thus opening the interface to other conversions.

An interface that converts anything to anything else is a separate
issue, and requires a separate discussion.

If we concentrate on converting from and to string, I think that two
families of functions, to_string and from_string is the most logical
approach. When I want a string, I know that I want a string and at
that time I don't care about any other conversions. I can't think of a
use case when I might want a string but might also want something

Emil Dotchevski
Reverge Studios, Inc.

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