On Monday 18 January 2016 23:43:37 Marc Mutz wrote: > a) std::string is not a movable type (at least I get a heap corruption when > marking it as such in GCC 5.3)
It used to be in C++98 and it is with libc++. The new C++11 std::string from libstdc++ is not relocatable. They implemented SSO by storing the "begin" pointer pointing to itself, so that the common operation of getting the begin pointer does not need a conditional. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development