Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-08-20 14:07:55


From: "Taglioretti Roberto"

> Hi,
> I have a problem with boot bind, in a my class there is this member:
>
> void test(int i) throw(Error);
>
> If I use bind(&test,obj,_1); I have a compilation error, instead if I
> change the member in
>
> void test(int i);
>
> all it works.

The following program works for me with VC 7.1.

#include <boost/bind.hpp>

struct Error
{
};

struct X
{
    void test( int i ) throw( Error )
    {
    }
};

int main()
{
    X obj;
    boost::bind( &X::test, obj, _1 );
}


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