-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Iterating over sub-object #794
Copy link
Copy link
Closed
Labels
solution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
Description
Activity
Metadata
Metadata
Assignees
Labels
solution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
I'm sorry but I'm completely lost
I just want to iterate over a value:
I even used std::cout just like the examples.
What am I doing wrong? It says
error: no member named 'key' in tilebut that makes no sense because im *iterator so I should already be ranged-for-ing over each tile.The examples also don't really provide any insight into iterating over things like these.
Iterating over the sub-object and then
std::cout << tile << std::endl;works like expected, however that is just magic. I want to print the key and the value separately, one as a string and the other as an array using indexing operator.