[Development] QHash for Qt 6

André Somers andre at familiesomers.nl
Tue Dec 24 11:32:08 CET 2019


On 24-12-19 11:28, Martin Smith wrote:
>> However, instead of adding
>> template<class T> bool qIsEmpty(const T &t) { return t.empty(); }
>> we keep discussing how ugly std is=)
> But that's kind of ugly too. I read it as qlsEmpty(), not qIsEmpty(). See what I mean? On of those is a lower case L.
>
> How about a new approach to adding free functions:
>
> template<class T> bool isEmptyQt(const T &t) { return t.empty(); }
>
> martin

A namespace seems a more reasonable solution then.

André




More information about the Development mailing list