Closed kamocat closed 4 years ago
By removing the const
qualifier on the original addMessage
and then creating a const
overload which calls the non-const version, I was able to fix the issue. My changes are in https://github.com/kamocat/plog/pull/2.
Looks good, thank you.
I have all the errors taken care of except this one:
If I remove the const qualifier, however, the function call doesn't match because the compiler thinks that the object is going to be modified. All we're doing is getting access to the character buffer inside the obufstream, to stream it to another destination.