Boost logo

Boost Users :

From: Douglas Gregor (gregod_at_[hidden])
Date: 2004-04-10 11:51:03


On Tuesday 06 April 2004 03:12 pm, Scott Lamb wrote:
> On Apr 6, 2004, at 1:47 PM, GoochRules! wrote:
> > I am attempting to do this in vs.net 2003:
> >
> > int f(HANDLE, HANDLE, HANDLE);
> >
> > int main(int argc, char* argv[])
> > {
> > HANDLE x;
> > HANDLE y;
> > HANDLE z;
> >
> > boost::thread* p = new boost::thread(boost::bind(f, x, y, z);
>
> It wants a void () function. You've given it an int () one. I'm not
> sure if there's a really slick way to discard that return value.
> Anyone?

The slick way to discard the return value is to do nothing :)
A function<void(...)> discards the return value already.

        Doug


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