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
logging pointer to struct #84
Comments
That overload reflects the similar overload in In the meantime, you can work around the problem by adding an overload like this:
It is more preferable than the |
Declaring:
Does not compile with: |
I wondered if |
Right, another overload is needed for
Actually, depending on what formatters you set, you may not need the overload for
|
:) yeah i just figured it out |
Code below is working for me. Great thanks :)
|
What I want to do is:
But as we look into
lib\native\include\boost\log\utility\formatting_ostream.hpp
there is an
basic_formatting_ostream& operator<< (const void* value);
defined which takes precedence over the one defined by me (visual studio 2017)
I can solve it by logging reference instead of pointer, but being it a diagnostic function I would like to check for nullptr.
This actually works on visual studio, but it breaks non null reference, which is not allowed on clang.
Finaly I can declare operator<< as a template
It works well, but stream operators are used everywhere in a projects and it greatly lengthes compilation.
Would it be possible to remove
basic_formatting_ostream& operator<< (const void* value);
from
lib\native\include\boost\log\utility\formatting_ostream.hpp
?
The text was updated successfully, but these errors were encountered: