Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Could you clarify, please "give a namespace to all the code in your module"? What is good practise to encapsulate to module. For example I have class of complex numbers and to external functions related to complex numbers. This class and those two functions should be in one namespace? Commented Jan 10, 2016 at 12:03
  • You'll see a lot of "using namespace std ;" in tutorial or example codes.... and the explainers never mention that this is poor practice, yet it is directed at exactly those who are trying to learn. Commented Jul 1, 2023 at 11:06