[Wayland-bugs] [Bug 101618] wl_array_for_each is not C++ compliant

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jun 28 09:22:20 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=101618

--- Comment #1 from Daniel Stone <daniel at fooishbar.org> ---
It cannot be cast to uint32_t as the type is not known in advance; for example,
the modifiers_map request from the text_input protocol uses an array of
uint8_t.

Is it possible to do the cast with typeof(*pos)? Every time I think I remember
how type-casting works in C++ I'm wrong, so maybe it wouldn't work.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20170628/9288dde2/attachment.html>


More information about the wayland-bugs mailing list