False error in range for loop over std::unordered_map
已回答
Hi,
CLion reports false error (not a valid range type) while I try to iterate over a std::unordered_map container, screenshot of the issue follows:
The snippet above compiles without errors, and should be a valid C++ code (C++17 standard is selected). I've tried to disable the check in the 'inspect code menu' for now, but the red highlight still appears (I would appreciate if anyone knew how to at least hide it, Alt+Enter menu does not give me the option).
System info:
OS: Ubuntu 16.04.4 LTS
CLion: 2018.1, Build #CL-181.4203.549
GCC: 5.4.0 20160609
Thanks for any help!
Peter
请先登录再写评论。
Hi! Please try using CLion 2018.1.1 EAP. The issue should be fixed in it.
Thank you, I haven't noticed the EA version - I confirm it fixed the problem.