Subject: Re: [boost] Formal Review Request: Boost.String.Convert
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-02-18 22:49:33


AMDG

Andrey Semashev wrote:
> My current vision is that Boost.NumericConversion and Boost.Units will
> provide a support layer for Boost.Convert (let's call it that way for
> now). That support layer will be implemented as a regular extension
> for the Boost.Convert library. So, the "convert" function will
> eventually call numeric_cast or quantity_cast, or any other
> appropriate tool in these libraries to fulfill the conversion.

There is no function called quantity_cast, in the released version of
Boost.Units--it's spelled static_cast.
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.

In Christ,
Steven Watanabe