-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Remove 'using namespace std;' from LMMS headers #6076
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🤖 Hey, I'm @LmmsBot from github.com/lmms/bot and I made downloads for this pull request, click me to make them magically appear! 🎩
Windows
Linux
macOS🤖{"platform_name_to_artifacts": {"Windows": [{"artifact": {"title": {"title": "64-bit", "platform_name": "Windows"}, "link": {"link": "https://14354-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.129%2Bg96dc204eb-mingw-win64.exe"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/14354?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}, {"artifact": {"title": {"title": "32-bit", "platform_name": "Windows"}, "link": {"link": "https://14353-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.129%2Bg96dc204eb-mingw-win32.exe"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/14353?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}, {"artifact": {"title": {"title": "32-bit", "platform_name": "Windows"}, "link": {"link": "https://ci.appveyor.com/api/buildjobs/aytw7brepcybvt8m/artifacts/build/lmms-1.3.0-alpha-msvc2017-win32.exe"}}, "build_link": "https://ci.appveyor.com/project/Lukas-W/lmms/builds/40057830"}, {"artifact": {"title": {"title": "64-bit", "platform_name": "Windows"}, "link": {"link": "https://ci.appveyor.com/api/buildjobs/eg99bml2nomxtrop/artifacts/build/lmms-1.3.0-alpha-msvc2017-win64.exe"}}, "build_link": "https://ci.appveyor.com/project/Lukas-W/lmms/builds/40057830"}], "Linux": [{"artifact": {"title": {"title": "(AppImage)", "platform_name": "Linux"}, "link": {"link": "https://14355-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.129%2Bg96dc204-linux-x86_64.AppImage"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/14355?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}], "macOS": [{"artifact": {"title": {"title": "", "platform_name": "macOS"}, "link": {"link": "https://14356-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.129%2Bg96dc204eb-mac10.14.dmg"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/14356?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}]}, "commit_sha": "1d72ec7bed0c3e945153de20d977824f39eb0045"} |
|
LGTM, double check for any other locations! |
|
Isn't it possible to add |
|
That can lead to just as many name conflicts, with the only difference being us opting into every one individually. The people here have many things to say about this: StackOverflow link. While this often doesn't address |
Agreed. As for other locations, 3rdparty/jack2:
plugins:
Most of these occurences might be contained to their respective projects - at least the Zyn Test header instances definitely are. |
We could fix the Alienwah in our fork (though note that this has been fixed on zyn's upstream). The Test files are only a source for auto-generating cpp files using "cxxtest", and they will only be ever included by their autogenerated cpp files. So I'm OK with leaving those as they are. This PR LGTM, but feel free to fix the occurences in the submodules mentioned - at least in those which we own (e.g. LMMS/zynaddsubfx). |
|
Note: The changes should be tested against GCC 6 to make sure it doesn't break builds. See #5831 for an example. |
|
Update on veal: orfanides_eq.h does in fact not contain a |
|
@irrenhaus3 I merged the zyn submodule to its master. If you revert the remote, I think we are ready to go. |
Removes "using namespace std" from global scope, which is a common source of symbol clashes. Adds std:: prefix to affected symbols in the header and some sources which included it transitively.