Opened 11 years ago

Closed 11 years ago

Last modified 11 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");

Change History (2)

comment:1 by Antony Polukhin, 11 years ago

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 by Antony Polukhin, 11 years ago

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

Note: See TracTickets for help on using tickets.