Re: [Boost-bugs] [Boost C++ Libraries] #7929: boost::lexical_cast< std::string, std::wstring > gives a compiler error.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7929: boost::lexical_cast< std::string, std::wstring > gives a compiler error.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-28 18:48:09


#7929: boost::lexical_cast< std::string, std::wstring > gives a compiler error.
----------------------------------+-----------------------------------------
  Reporter: nate@… | Owner: vladimir_prus
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: program_options
   Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------+-----------------------------------------
Changes (by apolukhin):

 * cc: antoshkka@… (added)
  * owner: apolukhin => vladimir_prus
  * component: lexical_cast => program_options

Comment:

 I'm afraid that this is not a bug of lexical_cast. Lexical_cast shall
 work like a std::stringstream/std::wstringstream, so the first example
 is equal to the following:

 {{{
 #include <sstream>

 int main() {
     std::wstringstream wss(L"some string");
     std::string str;
     wss >> str; // Compilation error

     return 0;
 }
 }}}

 And this code must not compile (if I'm wrong and my current compiler
 fail to compile a correct code - please tell me about it).

 So, this looks more like a program_options bug.

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