Boost logo

Boost :

From: Powell, Gary (powellg_at_[hidden])
Date: 2003-10-09 18:05:34


Gary > *) "for(;;){}" works really well for this case.

Dave >Not really well, IMO. There are plenty of well-known problems, not
Dave >least the need to declare iterators.

Yeah, but which iterator type? The container_type::const_iterator or the container::iterator?
which gives us
BOOST_CONST_FOR_EACH(x,y)

I'm just not seeing the problem that this macro solves. But that could be my macro bigotry as well. Ok, "break;", but I tend to want to use an iterator adapter to limit the range.

      -Gary-
----------
powellg_at_[hidden]


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk