ve1e
Member
|
#define T (*this)
Hey people. I am checking out esenthel, engine is rly great, altho some of its design i think is gimp (might be just a matter of taste tho).
Anyhow i found few things that look odd, i have no clue how author of the code thought of them.. one of them is "#define T (*this)". I mean.. how this could ever happen? it is common knowledge that people like defining typenames in template classes and functions as letter T. Now what this define does - it **** everything up if certain libraries with that code are used. So i wonder if its known issue with known workaround.. Or will this be something to fix?
|
|
09-09-2010 05:42 PM |
|
Dynad
Member
|
RE: #define T (*this)
Hey,
There is a workaround for that e.g:
#undef T
#undef C
#include "FILE.h"
using namespace FILE;
#define T (*this)
#define C const
There is always evil somewhere, you just have to look for it properly.
|
|
09-09-2010 05:44 PM |
|
ve1e
Member
|
RE: #define T (*this)
i see. thanks :]
|
|
09-09-2010 05:54 PM |
|