When running "g++ -std=c++0x" on the following two lines,
std::wstring s;
s = std::wstring(L"hello world");
the loader complains that there is an
undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>,
std::allocator<wchar_t> >::operator=(std::basic_string<wchar_t,
std::char_traits<wchar_t>, std::allocator<wchar_t> >&&)'
However, if the file x86_64-unknown-linux-gnu/libstdc++-v3/src/wstring-inst.o
in the gcc 4.5.0 build directory is added to the loader line, then there is
no problem.
--
Summary: operator= for rvalue reference for wstring disappears in
libstdc++.so.6.0.14
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: plaice at cse dot unsw dot edu dot au
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42989