Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-02-15 14:53:22


From: "hugo_duncan" <hugo.duncan_at_[hidden]>
> I think that I am have found a problem with bind, but maybe I am just
misusing it.
>
> The following program compiles fine on borland 5.5.1 and gcc 2.95.3-5 but
failson MSVC 7
[...]
> boost::bind(std::equal_to<int>(),1,boost::bind(&x::mf,_1)));

Yes, unfortunately VC 7 cannot infer the return type automatically, use

boost::bind<bool>(std::equal_to<int>(),1,boost::bind(&x::mf,_1)));

instead. See

http://www.boost.org/libs/bind/bind.html#err_short_form


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk