-
Notifications
You must be signed in to change notification settings - Fork 403
Support operator<<(std::ostream& os, ...) custom operators on Windows #66
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
Comments
Could you provide an example of a problem code? |
Do you mean a custom operator<< ? |
yes, when I provide a custom operator<<.
I'm not seeing how I can make this cross platform compatible as the library is now. I tried using wide strings instead but PLOG_ENABLE_WCHAR_INPUT=1 doesn't build on Linux either? |
I see. I'll take a look what can be done. |
Please, try a version from the |
Now plog should use any of |
I've tested the branch on Windows with MinGW64 6.1.0 and everything works as expected with my existing project using the file logger. Also tested on Linux. |
Excellent. |
Merged to master. |
Currently it's difficult to use the same code across platforms because Plog expects operator<< to use std::wostream on Windows, while on Linux (and OSX?) you need to use std::ostream. Thus code that builds on Linux fails to build on Windows and the other way around.
If there are other ways to have common operators across platforms I'd love to know.
The text was updated successfully, but these errors were encountered: