On Fri, Mar 15, 2019 at 4:08 PM Giuseppe D'Angelo via Interest <
interest@qt-project.org> wrote:

> Yes, this is public API.
>

Indeed, the point was that the API is a bit mismatched in regards to the
used types. QFlags uses int, while qPopulationCount accepts only unsigned
integers, so I'd have to static cast the integers. And I may get badly
surprised in the future if/when the API changes as I'd've suppressed the
type warnings with a static cast. In any case I decided to wrap something
small for my use case, because I decided that using QFlags is actually
abusing the API a bit.

Thanks for the input, anyway.
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to