David Simcha <> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from David Simcha <> 2010-08-18 18:00:10 PDT ---
I've added ForeachType to std.traits. 
(  I think this is a better
solution.  The only thing opApply and ranges have in common is the ability to
be iterated over using a foreach loop.  In some corner cases, such as when a
class/struct defines both opApply and range primitives, or when the type is a
narrow string, ElementType can be different from ForeachType.  If you want your
code to be agnostic of how the foreach loop is implemented and simply iterate
over the object with a foreach loop, then what you really care about is the
ForeachType, not the ElementType.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to