GCC 5/6: C++'s std::string with "qsort" - works with old ABI, fails with new one

Marc Glisse marc.glisse@inria.fr
Thu Apr 23 13:15:00 GMT 2015


On Thu, 23 Apr 2015, Tobias Burnus wrote:

> first, I know that std::sort() is better than qsort. Still, I'd like to 
> understand why this legacy code fails with GCC 5's new string ABI.

You were just lucky before, qsort is only for POD types.

-- 
Marc Glisse



More information about the Gcc-help mailing list