Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-01-04 18:06:12


Allen Zhao wrote:

> 2) boost::bind(std::less<int>(), _1, 0)) (libtorrent/src/session.cpp)

You can make this compile on VC 7.0 by providing a return type:

    boost::bind<bool>(std::less<int>(), _1, 0)

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


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