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
I'm using the latest code 8489989 and enable all gcc warnings and it reports -Wrange-loop-construct warnings in sentence " for (const std::pair<std::string,...: map container) " such as " for (const std::pair<std::string, base::type::LoggerRegistrationCallbackPtr>& h".
It found that the "const std::pairstd::string,...& h" may not avoid construct objects because "std::string" in std::pair should be "const std::string". It's better to directly use "const auto &" for elimenating confusing of type matching.
The text was updated successfully, but these errors were encountered:
I'm using the latest code 8489989 and enable all gcc warnings and it reports -Wrange-loop-construct warnings in sentence " for (const std::pair<std::string,...: map container) " such as " for (const std::pair<std::string, base::type::LoggerRegistrationCallbackPtr>& h".
It found that the "const std::pairstd::string,...& h" may not avoid construct objects because "std::string" in std::pair should be "const std::string". It's better to directly use "const auto &" for elimenating confusing of type matching.
The text was updated successfully, but these errors were encountered: