On Tue, Mar 4, 2008 at 7:16 PM, Marshall Clow <marshall@idio.com> wrote:
Would this work?
std::for_each( myStrings.begin(), myStrings.end(), boost::bind(
&DoFoo<std::string>, 5, _1 ) );
Well, the example I gave was probably overly simple. The real example uses a boost::python::list, which can either take a char* or a std::string. At the time I'm doing the boost::bind, I do not know what type is being passed in.