Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-03-05 12:47:42


Robert Dailey:

> Below is the real example:
...

> using namespace boost::python;
>
> list newsyspath;
>
> std::for_each( pathList.begin(), pathList.end(), boost::bind(
> &list::insert<boost::filesystem::path>, newsyspath, 0, _1 ) );

Unfortunately, list::insert is overloaded, and boost::bind doesn't handle
overloaded functions well. See the section "Binding an overloaded function"
in

http://svn.boost.org/trac/boost/browser/trunk/libs/bind/bind.html?format=raw


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