Why won't this compile and how can it be implemented so that it does?

后端 未结 6 804
挽巷
挽巷 2020-12-21 12:30

Here is some C++ code I\'m playing around with:

#include 
#include 

#define IN ,
#define FOREACH(x,y) for(unsigned int i=0;i&l         


        
6条回答
  •  萌比男神i
    2020-12-21 13:02

    Check out BOOST_FOREACH - it does what you want

    http://www.boost.org/doc/libs/1_35_0/doc/html/foreach.html

提交回复
热议问题