(This could also be phrased as "How do I iterate over a collection returned from a C# Windows Runtime Component in C++/CX?")
I tried to use std::for_each
on an IIterable<T>
but get the following compile-time error
error C2664: 'std::begin' : cannot convert parameter 1 from 'my_collection_type ^' to 'Platform::String ^' No user-defined-conversion operator available, or Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
How can I iterate over the collection?