0

Other questions address the general question of putting using namespace statements inside namespace blocks in headers, and speak against it.

Does this equally hold for using namespace std; or using namespace std::placeholders;?

Swiss Frank
  • 1,985
  • 15
  • 33
  • Does this answer your question: [Why is “using namespace std;” considered bad practice?](https://stackoverflow.com/q/1452721/430766) – bitmask Sep 01 '20 at 09:30
  • what other questions? – 463035818_is_not_an_ai Sep 01 '20 at 09:33
  • The short answer is "yes, the general rule against `using namespace` in headers also applies to those two specific namespaces" – Useless Sep 01 '20 at 09:35
  • Your own header files should not be pulling in `std` wholesale into the global namespace, nor pulling in `std` identifiers piecemeal into the global namespace. It is impolite. – Eljay Sep 01 '20 at 11:43

0 Answers0