Boost logo

Boost Users :

From: Nat Goodspeed (ngoodspeed_at_[hidden])
Date: 2006-03-11 12:54:50


> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Rob Caldecott
> Sent: Saturday, March 11, 2006 12:36 PM
> To: boost-users_at_[hidden]
> 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.


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