lilypond-auto
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lilypond-auto] Issue 4550 in lilypond: Avoid "using" directives in incl


From: lilypond
Subject: [Lilypond-auto] Issue 4550 in lilypond: Avoid "using" directives in included files
Date: Mon, 10 Aug 2015 17:02:48 +0000

Status: Started
Owner: address@hidden
Labels: Type-Maintainability

New issue 4550 by address@hidden: 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

[Prev in Thread] Current Thread [Next in Thread]