On 20.09.23 19:03, Ivan Solovev via Development wrote: > > We did _not_ deprecate qSwap(). > > Well, the source code shows that it _is_ deprecated: > https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/global/qswap.qdoc [...] > I was not able to find a documentation page for qSwap in Qt 6.5, > but here's the link to 6.2: > https://doc.qt.io/qt-6.2/qtalgorithms-obsolete.html#qSwap Thanks. This happens when one only ever looks at the source, not the docs...
Looks like this was mass-deprecated with all the other QtAlgorithms for Qt 5, and no-one looked twice. We can only deprecate it come C++20, when we can steer people towards std::ranges::swap() instead. Will un-deprecate and pour some TLC over it. Thanks, Marc PS: Looks like our IT made our Outlook wrap URLs in some wrapper that Thunderbird complains about. Sorry for the annoyance, everyone :( -- Marc Mutz <marc.m...@qt.io> Principal Software Engineer The Qt Company Erich-Thilo-Str. 10 12489 Berlin, Germany www.qt.io Geschäftsführer: Mika Pälsi, Juha Varelius, Jouni Lintunen Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B -- Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development