Skip to content
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

LOG_TO_STRING and std namespace #550

Closed
blacktea opened this issue May 7, 2020 · 0 comments · Fixed by #624
Closed

LOG_TO_STRING and std namespace #550

blacktea opened this issue May 7, 2020 · 0 comments · Fixed by #624
Labels
Milestone

Comments

@blacktea
Copy link

blacktea commented May 7, 2020

Hi,
I'd like to use LOG_TO_STRING(ERROR,string) macros.
However, it requires to write
using namespace std; or using std::string;
before calling macros. That's not convinient.

That's because LOG_TO_STRING does not use std namespace in static_cast.

#define LOG_TO_STRING(severity, message) \ LOG_TO_STRING_##severity(static_cast<string*>(message)).stream()

@sergiud sergiud added the bug label Mar 30, 2021
@sergiud sergiud added this to the 0.5 milestone Mar 30, 2021
@sergiud sergiud mentioned this issue May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants