29 Jan
2013
29 Jan
'13
7:33 p.m.
I'd like to make it easy to do a BOOST_FOREACH for every value in an enumeration. I tried enum E { E_First, ⋯ , E_Last }; boost::counting_range(E_First, E_Last) but got compiler template barf. Can someone suggest a good way to do this?