Ok so I got a question. Why do a bunch of the very strict advocates of standard everything (among which I agree, by the way - standard makes things easier) always put std:: in front of everything??
I mean, isn't
rather more needlessly complicatedCode:inline void wait_for_keypress() { std::cin.ignore(std::cin.rdbuf->in_avail() + 1); }
than say,
or so?Code:using namespace std; inline void wait_for_keypress() { cin.ignore(cin.rdbuf->in_avail() + 1); }
Is there actually a reason for using the prefix std:: all the time rather than 'using namespace std'? Actually namespaces is one of the things I haven't really gotten into yet, but I know using namespace std is supposed to be part of the standard way of doing things, and I know that wether it's standard or not, prefixing everything with std:: is a royal pain.
(plus I never put std:: in front of things, and they still work)
Any info on this you can point me towards?