Chris Lattner <clattner at apple.com> writes:> The problem that I have with this sort of higher order metaprogrammingMetaprogramming? This isn't template metaprogramming if that's what you mean.> in C++'98 is that you're trading one set of complexity for another.What's the other complexity? -Dave
I'm talking about mapped iterator + select1st. -Chris On Jul 16, 2011, at 2:58 PM, greened at obbligato.org (David A. Greene) wrote:> Chris Lattner <clattner at apple.com> writes: > >> The problem that I have with this sort of higher order metaprogramming > > Metaprogramming? This isn't template metaprogramming if that's what you > mean. > >> in C++'98 is that you're trading one set of complexity for another. > > What's the other complexity? > > -Dave
Chris Lattner <clattner at apple.com> writes:> I'm talking about mapped iterator + select1st.Right. It's just functional programming (mostly). Isn't this why mapped_iterator exists? In any event, if you really object, I guess I will write separate loops. Seems like we're throwing away a lot of the power of C++, though. -Dave