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
When I #include "spdlog/sinks/dist_sink.h"
I get compilation error
spdlog/include/spdlog/sinks/dist_sink.h:58: error: declaration of ‘sink’ shadows a member of ‘spdlog::sinks::dist_sinkstd::mutex’ [-Werror=shadow]
In file included from
nclude/spdlog/sinks/dist_sink.h: In instantiation of ‘void spdlog::sinks::dist_sink::sink_it_(const spdlog::details::log_msg&) [with Mutex = std::mutex]’:
spdlog/include/spdlog/sinks/dist_sink.h:58:10: required from here
spdlog/sinks/dist_sink.h:60:9: error: declaration of ‘sink’ shadows a member of ‘spdlog::sinks::dist_sinkstd::mutex’ [-Werror=shadow]
60 | for (auto &sink : sinks_)
| ^~~
The text was updated successfully, but these errors were encountered:
When I #include "spdlog/sinks/dist_sink.h"
I get compilation error
spdlog/include/spdlog/sinks/dist_sink.h:58: error: declaration of ‘sink’ shadows a member of ‘spdlog::sinks::dist_sinkstd::mutex’ [-Werror=shadow]
In file included from
nclude/spdlog/sinks/dist_sink.h: In instantiation of ‘void spdlog::sinks::dist_sink::sink_it_(const spdlog::details::log_msg&) [with Mutex = std::mutex]’:
spdlog/include/spdlog/sinks/dist_sink.h:58:10: required from here
spdlog/sinks/dist_sink.h:60:9: error: declaration of ‘sink’ shadows a member of ‘spdlog::sinks::dist_sinkstd::mutex’ [-Werror=shadow]
60 | for (auto &sink : sinks_)
| ^~~
The text was updated successfully, but these errors were encountered: