Boost logo

Boost Users :

Subject: Re: [Boost-users] Problem with boost::bind usage
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-06-16 19:26:28


AMDG

Zachary Turner wrote:
> Is there a technical limitation preventing this from working?
>
> int __stdcall VirtualUnlock(void*, size_t);
>
> void f()
> {
> std::list<void*> locked_buffers;
> size_t size;
>
> std::for_each(locked_buffers.begin(), locked_buffers.end(),
> boost::bind(VirtualUnlock, boost::lambda::_1, size));
> }
>

http://www.boost.org/libs/bind/bind.html#stdcall

In Christ,
Steven Watanabe


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