Status: Started
Owner: [email protected]
Labels: Type-Maintainability

New issue 4550 by [email protected]: Avoid "using" directives in included files
https://code.google.com/p/lilypond/issues/detail?id=4550

"using namespace std;" seems to be *everywhere* in Lilypond. It appears in *.cc files before headers are included. It appears in header files too.

"using" directives should not be used where they might affect more than the current file.

The patch for this issue will have to wait for a handful of issues that I found along the way to be fixed, but here is the summary:
  * eliminate "using namespace std;"
  * add "std::" to everything in *.hh files (and other included files)
* add "using std::whatever;" in *.cc files for common types (e.g. string, vector) * add "std::" in *.cc files for functions (e.g. swap) and other less common things (e.g. less)


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

Reply via email to