[Xcb] Why is xcb_leave_notify_event_t a typedef?

Ulrich Eckhardt doomster at knuut.de
Sun Sep 5 07:46:42 PDT 2010


Hi!

The question is why this is a typedef for xcb_enter_notify_event_t instead of 
a separate type? The problem I had with this was when creating an overloaded 
C++ function to format this as a string - you can't create overloads for 
typedefs, which are mere aliases, you need separate types instead.

Is this necessary for something or was it just convenience?

Uli


More information about the Xcb mailing list