1
0

Added support for overide in c++11 supporting varients of gcc/clang

This commit is contained in:
Tycho 2014-01-25 15:02:31 -08:00
parent 15b92af166
commit a2d3eea80b

View File

@ -44,8 +44,10 @@
// TODO: Can GCC explicitly mark classes as abstract (no instances can be created)? // TODO: Can GCC explicitly mark classes as abstract (no instances can be created)?
#define abstract #define abstract
// TODO: Can GCC mark virtual methods as overriding (forcing them to have a virtual function of the same signature in the base class) // override is part of c++11
#define override #if __cplusplus < 201103L
#define override
#endif
#define OBSOLETE __attribute__((deprecated)) #define OBSOLETE __attribute__((deprecated))