Hacker News new | ask | show | jobs
by seabrookmx 4485 days ago
If it's just a simple demo app, I probably wouldn't use it as a example of good C++ practice.

Many C++ devs have a different idea on what idiomatic C++ should look like. C++11 really shakes things up as well.

There's no reason a "using namespace std;" is bad, as long as it isn't in the header. If it's in the header file, every file that includes that header will have it's namespace polluted with std declarations, and this leads to a big nasty chain of potential name conflicts (one header file includes another and so on and so forth).

1 comments

Right, it makes perfect sense. Thanks for that.