[Development] C++20 comparisons @ Qt (was: Re: C++20 @ Qt)

Marc Mutz marc.mutz at qt.io
Wed Sep 20 17:25:28 CEST 2023


On 20.09.23 14:42, Ivan Solovev via Development wrote:
> We have deprecated qSwap()

FTR:

We did _not_ deprecate qSwap(). We banned it from inline Qt code when we 
know we can use one of the other ways:

- lhs.swap(rhs);
- std::swap(lhs, rhs);
- qt_ptr_swap(lhs, rhs);

We still use it in generic code, e.g. QList().

-- 
Marc Mutz <marc.mutz at 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



More information about the Development mailing list