BGE is compilable by MSVC again

Compilation error was mostly caused by trying to use namespace std before it was
actually defined (e.g. before any include of stl header).
It's not actually good idea to use namespaces in header files -- it's really easy to
run into namespace conflicts and so. Resolved by not using "using namespace" in header
files and using full quality accessing to stl collections (e.g. std::vector).
This commit is contained in:
Sergey Sharybin
2012-02-23 09:40:10 +00:00
parent 09ee59c669
commit d881bb4b32
6 changed files with 12 additions and 14 deletions

View File

@@ -34,6 +34,8 @@
#include "NG_LoopBackNetworkDeviceInterface.h"
#include "NG_NetworkMessage.h"
using namespace std;
// temporary debugging printf's
#ifdef NAN_NET_DEBUG
#include <stdio.h>