Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#6504 closed Bugs (fixed)

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

Reported by: Antony Polukhin Owned by: Antony Polukhin
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 (0)

Change History (2)

comment:1 Changed 5 years ago by Antony Polukhin

Resolution: fixed
Status: newclosed

(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 5 years ago by Antony Polukhin

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Antony Polukhin.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.