
9 May
2011
9 May
'11
12:49 p.m.
Den 09-05-2011 14:26, Jeff Flinn skrev:
Nathan Ridge wrote:
If you want your container to work with BOOST_FOREACH, you need to make sure it has begin() and end() member functions which return iterators with the appropriate capabilities (increment, dereference, equality comparison).
Or specialized boost::begin/boost::end perhaps?
No ... overload range_begin()/range_end() in the namespace of the class. See the range docs. -Thorsten