Subject: Re: [Boost-bugs] [Boost C++ Libraries] #922: Lexical cast and wide characters
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-07-06 12:35:20
#922: Lexical cast and wide characters
-------------------------------+--------------------------------------------
Reporter: brey | Owner: nobody
Type: Feature Requests | Status: assigned
Milestone: | Component: None
Version: None | Severity: Showstopper
Resolution: None | Keywords:
-------------------------------+--------------------------------------------
Changes (by dave):
* cc: kevlin_at_[hidden] (added)
* severity: => Showstopper
Old description:
> {{{
> It would be nice to make lexical_cast be handle to
> translate through means other than a char-width
> string. One way to address this is follows:
>
> template<typename Target, typename Source, typename E
> = char>
> Target lexical_cast(Source arg)
> {
> std::basic_stringstream<E> interpreter;
> ...
>
> Other options, such as using traits to try to deduce E
> from the target type automatically, would be fine,
> too. Think of the above suggestion as a starting
> point; however, it would plug what it currently a hole.
>
> This feature request is derived from:
> http://groups.yahoo.com/group/boost/message/10937
>
> }}}
New description:
{{{
It would be nice to make lexical_cast be handle to
translate through means other than a char-width
string. One way to address this is follows:
template<typename Target, typename Source, typename E
= char>
Target lexical_cast(Source arg)
{
std::basic_stringstream<E> interpreter;
...
Other options, such as using traits to try to deduce E
from the target type automatically, would be fine,
too. Think of the above suggestion as a starting
point; however, it would plug what it currently a hole.
This feature request is derived from:
http://groups.yahoo.com/group/boost/message/10937
}}}
Comment:
Can't reassign this to Kevlin until he enters his email as described at
TicketWorkflow
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/922#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC