miro@3dea
Member
|
Suggestion for code change
Hi there, please take under consideration moving "using namespace EE;" directive from EsenthelEngine.h to stdafx.h to be more under user control.
|
|
08-08-2012 12:33 PM |
|
Sherincall
Member
|
RE: Suggestion for code change
I would like to reopen this problem, it can really be a pain sometimes.
You needn't move the directive itself, you could just do it like this:
Code:
#ifndef EE_DONT_USE_NAMESPACE_BY_DEFAULT
using namespace EE;
#endif
So no changes to any old code need to be made, but still allows some control for the users (It can be specified as a -D flag to the compiler, for example).
There are a few ways users can work around this on their own, but they are all hacky and not future proof, and it's a really simple change on your end.
Thanks.
|
|
02-17-2014 02:23 AM |
|