
22 Apr
2004
22 Apr
'04
3:03 p.m.
John Torjo <john.lists@torjo.com> writes:
of course ;) the element type is deduced from the container type. For instance, if you want a constant range, just do: crange<const container> r(cont); //... etc
But container is usually "spelt something<element_type>", so I'd pick naming the element type over naming the container type any day.
But it's technically not possible.
It works with Eric's FOR_EACH macro. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com