frontend: Remove "using namespace std" from headers #12683
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This is very dangerous as it propagates down everywhere the headers are included in.
Imo we should avoid
using namespace stdin general, but in headers it should be an absolute no-go.Motivation and Context
I was baffled how this code works without
std::in front offind_if:obs-studio/frontend/utility/YoutubeApiWrappers.cpp
Lines 34 to 39 in 0b12296
So I searched the entire source code to find if (pun intended!) there is anywhere where
using namespace stdis in a header.The two spots I did find are in this PR. They do not affect the code above. I am still baffled. (but at least fixed the ones I did find).
Please tell me if you know why the above code works, haha.
How Has This Been Tested?
macOS 26, still compiles.
Types of changes
Checklist: