
11 Mar
2006
11 Mar
'06
5:54 p.m.
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Rob Caldecott Sent: Saturday, March 11, 2006 12:36 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] boost::lambda question
Thanks Sebastian, but I am still struggling to make this work. I now get the following error:
"error C2664: 'DeleteFileW' : cannot convert parameter 1 from 'const boost::lambda::lambda_functor<T>' to 'LPCWSTR'"
[Nat] Don't you have to bind DeleteFileW as well? Something like (untested): for_each(v.begin(), v.end(), bind(::DeleteFileW, bind(&wstring::c_str, _1))); I think this phrasing should work with either boost::lambda::bind or boost::bind.