[Xcb] Why is xcb_leave_notify_event_t a typedef?

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


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?


More information about the Xcb mailing list