Re: [Boost-bugs] [Boost C++ Libraries] #6186: lexical_cast on vs2005 with wchar_t-

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6186: lexical_cast on vs2005 with wchar_t-
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-13 21:18:43


#6186: lexical_cast on vs2005 with wchar_t-
-------------------------------+--------------------------------------------
  Reporter: anonymous | Owner: apolukhin
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: lexical_cast
   Version: Boost 1.48.0 | Severity: Problem
Resolution: fixed | Keywords:
-------------------------------+--------------------------------------------

Comment (by steven_watanabe):

 Replying to [comment:9 cheng.yang <luckyangcheng@…>]:
> Yes, there is the difference.
>
> When wchar_t is defined as unsigned short, your solution still treat
 wchar_t as unsigned short.

 As it should be.

> But my solution will treat it as the wchar_t, notice that I will call
 bool operator>>(wchar_t& output) { return shr_xchar(output); } in the
 case.
>

 IMHO, it's much worse to treat unsigned short as wchar_t than to treat
 wchar_t as unsigned short.
 When wchar_t is not a first class citizen, it's impossible to avoid doing
 one or the other.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6186#comment:11>
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:50:08 UTC