[Interest] Operator QMap<uint, uint>[] is casting to int?

André Pönitz apoenitz at t-online.de
Tue May 7 20:18:00 CEST 2019

On Tue, May 07, 2019 at 05:49:03PM +0300, Konstantin Tokarev wrote:
> >
> > (Honorable mention: QStringView is 64-bit ready.)
> You were asking when static_casts between int and size_t are needed.
> Interfacing Qt-based code with Standard Library types is one of such cases.

C++20 and std::ssize(std::container) to the rescue.


More information about the Interest mailing list