CLion inspection gives false alarm comparing iterators

已回答

Quotas is a std::unordered_map<uint32_t, uint32_t> object. The inspector gives "Can't compare structures" alarm while the code is legitimate and compiles with no problem.

1

Hi! Thanks for reporting. We have the related issue about map/unordered_map/other containershttps://youtrack.jetbrains.com/issue/CPP-10947. Feel free to comment or upvote, follow it to get updates.

0
Avatar
Permanently deleted user

I have the same and it is really disturbing since it also gives a red line in the margin of so many of files. I just assumed it would be fixed since it is so very disturbing, but obviously I was a bit naive there. CPP-10947 is closed. Please advice me where I shall upvote and I will do so. Thanks.

Edit: I am on Windows 10, Clion 2017.3.3.

0

Sorry for the inconvenience. The more accurate issue for this case is https://youtrack.jetbrains.com/issue/CPP-11511. Please follow it.

0

请先登录再写评论。