Boost logo

Boost Users :

From: Raul Huertas Diaz (rhuertas_at_[hidden])
Date: 2002-06-03 02:31:37


El Fri, 31 May 2002 16:39:19 -0400
"Richard Fox" <rfox_at_[hidden]> escribió:

> In problem (2) in my previous email I cited code Listing 2, but this compilation error was actually generated by code Listing 3, as follows:
>
> ...
>
> The errors are:
>
> listing3.C:29: no matching function for
> call to `bind ({unknown type}, int)'
> listing3.C:31: no matching function for
> call to `bind ({unknown type}, int)'
>
> Thanks
>

It works for me in gcc 3.0.4

Try to change the lines with bind to:
  boost::thread thrd1(boost::bind(count, 1));
  boost::thread thrd2(boost::bind(count, 2));
it should work too.

Regards,
Raúl.


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