Modify

Ticket #6504 (closed Bugs: fixed)

Opened 2 years ago

Last modified 2 years ago

Compile error when casting std::string to containers::wstring

Reported by: apolukhin Owned by: apolukhin
Milestone: Boost 1.50.0 Component: lexical_cast
Version: Boost 1.48.0 Severity: Regression
Keywords: Cc:

Description

Test case:

std::wstring std_wstr(L"std_wstr");
boost::container::wstring boost_wstr(L"boost_wstr");

BOOST_CHECK(boost::lexical_cast<std::wstring>(boost_str) == L"boost_str");
BOOST_CHECK(boost::lexical_cast<boost::container::wstring>(std_str) == L"std_str");

Attachments

Change History

comment:1 Changed 2 years ago by apolukhin

  • Status changed from new to closed
  • Resolution set to fixed

(In [77824]) * fixes #6504 (characters widening fixed)

  • much more tests
  • better support for unicode characters and template classes that are instantinated with unicode character types
  • meta code refactored (it is now shorter and clearer)

comment:2 Changed 2 years ago by apolukhin

(In [77936]) Fix compile time error in lexical_cast, when new unicode characters are being converted (Refs #6504 )

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.