From: "Aleksey Gurtovoy" <[EMAIL PROTECTED]> > Joel de Guzman wrote: > > > > mpl::for_each< my_types >(my_function(text, _1)); > > This is way too cool! Now we only need to provide such free-standing forms > of all STL algorithms/member functions, and we will be living in a different > world: > > std::vector<std::string> v; > > push_back(v, "text"); // plain call > for_each(input, push_back(v, _1)); // currying
Almost... all such uses are ambiguous. push_back(v, "text") can be a plain call or bind(push_back, v, "text"). push_back(v, _1) could - at least in theory - also be a plain call. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost