I will ask this in a forum, but since some people actually read my journal maybe you can answer a quick simple question:
Should I get used to using => std:: or am I fine using => using namespace std; at the top of my code?
I have been using the second choice, but I see a lot of people using std::
In a header, or other distributed file: Don't pollute the global namespace with a using declaration. People probably won't like that.
In a source or implementation file: It'll all get compiled away nicely, and won't affect other parts of the project. using namespace is fine.
Or, at least, that's what I do lol -
#include "PAIN_Config.h"
#include "PAIN_FMOD.h"
#include "PAIN_GUI.h"
#include "PAIN_Log.h"
#include "PAIN_OGL.h"
#include "PAIN_SDL.h"
#include "PAIN_VFS.h"
using namespace pain::config;
using namespace pain::core;
using namespace pain::fmod;
using namespace pain::gui;
using namespace pain::log;
using namespace pain::ogl;
using namespace pain::sdl;
using namespace pain::vfs;