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

contract inference for std map from string to string #28

Open
qqiangwu opened this issue Feb 6, 2024 · 1 comment
Open

contract inference for std map from string to string #28

qqiangwu opened this issue Feb 6, 2024 · 1 comment
Assignees
Labels
false-positives warnings that are actually not warnings lifetime-contracts contracts inference

Comments

@qqiangwu
Copy link
Owner

qqiangwu commented Feb 6, 2024

std::map<std::string, std::string> m;
const auto& s1 = m.at("key");
// pset(s1) == pset("key")

const auto& s2 = m["key"];
// pset(s2) == pset("key")
@qqiangwu qqiangwu added false-positives warnings that are actually not warnings lifetime-contracts contracts inference labels Feb 6, 2024
@qqiangwu qqiangwu self-assigned this Feb 6, 2024
@qqiangwu
Copy link
Owner Author

FD->getQualifiedNameAsString()

std::map<int, int>::at

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
false-positives warnings that are actually not warnings lifetime-contracts contracts inference
Projects
None yet
Development

No branches or pull requests

1 participant