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

There's no need to define the Mutex mutex_ as mutable since class base_sink has no const method. #2139

Closed
sunlong169 opened this issue Oct 16, 2021 · 1 comment

Comments

@sunlong169
Copy link
Contributor

sunlong169 commented Oct 16, 2021

The related code snippet is seen at https://github.com/gabime/spdlog/blob/v1.x/include/spdlog/sinks/base_sink.h line 40.
There's no need to define the Mutex mutex_ as mutable since class base_sink has no const method.

@sunlong169 sunlong169 changed the title There's no need to define the type of Mutex mutex_ as mutable since class base_sink has no const method. There's no need to define the Mutex mutex_ as mutable since class base_sink has no const method. Oct 16, 2021
@gabime
Copy link
Owner

gabime commented Oct 16, 2021

Right. PR is welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants