Re: [sigc] return value of emit()



On Wed, 2005-07-13 at 17:19 +0200, Antonio Coralles wrote:
> Let's say i've an sigc::signal<bool> with no slots connected to it. Will
> emit() then return true, or false ?

I guess it will return bool(). For instance, a std::list<bool> would
have bool() as the default value for elements. That's probably false.

>  Is there a way to customize this
> behavour ?
> [I know that this problem can be easily be circumvented using empty() ... ]
> Antonio

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]