About Store Forum Documentation Contact



Post Reply 
Suggestion for code change
Author Message
miro@3dea Offline
Member

Post: #1
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
Find all posts by this user Quote this message in a reply
Sherincall Offline
Member

Post: #2
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
Find all posts by this user Quote this message in a reply
Post Reply