Replies: 1 comment 2 replies
-
Yep, definitely want iterator support, just haven't got around to that yet. It's pretty easy since it'll just wrap the containing object and the index. I'll pop it on the pre-release issues list. The BasicConfig::General::ContainedChannelsItem item = channels.addItem(); The IDE should be able to provide auto-completion though. There should be an alias so this works: BasicConfig::General::Channels::Item item = channels.addItem(); I'll get that added. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I notice that in the Basic_Config example, you use
auto item = channels.addItem();
,to iterate over an array, so auto type works for arrays. And of course, the code has to know the structure of the returned data object.How difficult would it be to enable the use of
for (const auto item : channels) {}
?I guess I can use
for (int i=0;i<channels.getItemCount(),i++)
but I wonder if the iterator style above can work as well?[edit - I think I messed this up in trying to copy stuff around and in doign so, made it unreadable. Glad you could figure out what I was trying to say :D]
Beta Was this translation helpful? Give feedback.
All reactions