Files
SDL/include
Sam Lantinga f8d589d4aa Date: Fri, 18 Feb 2005 20:49:35 +0200 (EET)
From: ville
Subject: [SDL] Changing, at least some, anonymous enums to named enums.

Howdy,

Could, some if not all, enums be named rather than being anonymous enums?
I ran into troubles with the enum describing event types in SDL_events.h.
The problem is that an anonymous enum cannot be used in C++ templates like
so:

enum { C };

template< typename T >
void
f( T ) {
}


f( C );
2006-01-29 23:14:04 +00:00
..
2001-04-26 16:45:43 +00:00
2005-11-23 07:29:56 +00:00
2005-11-23 07:29:56 +00:00
2004-11-15 23:34:56 +00:00
2006-01-27 08:47:15 +00:00
2006-01-25 06:53:50 +00:00
2005-12-14 05:55:17 +00:00
2005-11-23 07:29:56 +00:00
2005-11-23 07:29:56 +00:00
2005-01-02 05:11:16 +00:00
2005-11-23 07:07:19 +00:00