Boost logo

Boost Users :

From: Rodolfo Lima (rodolfo_at_[hidden])
Date: 2007-03-12 18:21:36


> // 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net