Example:
std::map<std::string, int > m = { {"abc", 42 } }; for (const auto& [name, value] : m) // Variable 'name' is not assigned a value. [unassignedVariable] { std::cout << name << std::endl; }
Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/10743
Log in to post a comment.
Example:
Last edit: Anton Davidenko 2022-01-17
Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/10743