12 Mar
2007
12 Mar
'07
10:21 p.m.
// Why doesn't this compile ... std::for_each(from.begin(), from.end(), if_then((_1 ->* &sample::odd) == false, std::cout << _1));
IMO it should be &1->*&sample::odd The ->* operator expects a pointer in its left side. Since & has higher priority than ->*, it suffices to add & to _l and it'll work. Regards, rod