-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Use constinit in logs.cpp #16287
base: master
Are you sure you want to change the base?
Use constinit in logs.cpp #16287
Conversation
Not sure if it will compile yet.
Or put the decleration out of the function |
I don't think it matters, it's some compiler support problem that blocks constexpr default constructor (should be in c++20) |
My suggestion compiles on msvc at least (no idea if it's better than the current code) |
Use unique_ptr wrapper
Fix std::string reuse
rpcs3/util/logs.cpp
Outdated
if (!args_) | ||
args_ = std::make_unique<std::vector<u64>>(); | ||
auto& text = *text_.get(); | ||
auto& args = *args_.get(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think .get is needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, okay, it isn't
Damn MSVC what the hell |
Not sure if it will compile yet.