[Interest] popcnt for QFlags
kshegunov at gmail.com
Fri Mar 15 15:43:36 CET 2019
On Fri, Mar 15, 2019 at 4:08 PM Giuseppe D'Angelo via Interest <
interest at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest