$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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