[Development] QHash<const char*,..>

André Somers andre at familiesomers.nl
Mon Jan 22 10:10:59 CET 2018


Hi,

As already pointed out by the other responders, this cannot be an error.
However, perhaps it could be a Clazy check? Because I doubt QHash<const
char*, T> does what the writer intented in the general case.

André


Op 18/01/2018 om 15:12 schreef René J.V. Bertin:
> Hi,
>
> It took me a while to figure out why my QHash map of a const char* to something else didn't work despite containing the expected key,value combinations. I understand that the bug was in my code rather than in QHash, because the class is not designed to work with basic data types.
>
> It could help though if a compiler error were raised in this kind of situation, would that be possible?
>
> thanks,
> R.
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development




More information about the Development mailing list