You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For my testing program, I would like to log to stderr. The signature of DefaultLogSystem makes that quite hard though.
I would like to just plug in a pointer/reference to std::cerr, but according to the constructor it must be wrapped inside a shared_ptr.
For obvious reasons, I can't put std::cerr into a smart pointer or my program will segfault.
I tried making a wrapper object using Boost.Iostreams but for some reason that has a static_assert saying that I'm not allowed to wrap any of the built-in streams.
It would be good if there was a constructor where I could just pass in a naked pointer (or you supply an object that I can construct and pass that wraps another std::ostream).