(这也可以表述为“如何在C++/CX中遍历从C# Windows Runtime组件返回的集合?”)
我尝试在IIterable上使用std :: for_each,但是得到以下编译时错误:
错误C2664:'std :: begin':无法将参数1从'my_collection_type ^'转换为'Platform :: String ^'。没有可用的用户定义的转换运算符,或者指向的类型不相关;转换需要reinterpret_cast,C-style cast或function-style cast。
如何迭代集合?