Boost logo

Boost Users :

From: David Rodríguez Ibeas (dibeas_at_[hidden])
Date: 2008-07-21 16:09:28


Hi,

   Is it possible to override/generate a return value? I want to connect a
signal that has a bool return value to a method that has a void return type,
generating always a true return.

class X
{
public:
   void f();
};
boost::signal< bool () > sgn;

X x;
sgn.connect( boost::bind( &X::f, &x ) ); // error, signal has bool return,
method doesn't

   David



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