I can't iterate through std::unordered_map

54 views
Skip to first unread message

Gospodin Settler

unread,
Sep 17, 2018, 1:19:59 PM9/17/18
to android-ndk
So my simple code is not working. I'm just trying to iterate through unordered_map but the IDE Android studio is saying "std::unordered_map<int, int> is not a valid range type."
std::unordered_map<int, int> inters;
for (auto iterater : inters /*<= std::unordered_map<int, int> is not a valid range type*/) {
}

Dan Albert

unread,
Sep 17, 2018, 1:24:20 PM9/17/18
to android-ndk
Does it build? If it builds and it's just the IDE wrongly incorrectly marking it as wrong then you should file a bug for Android Studio over at http://b.android.com.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/e1abe819-fe8f-4984-a5a0-9e00ef19a368%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages