Re: [sigc] return value of emit()
- From: Murray Cumming <murrayc murrayc com>
- To: Antonio Coralles <noche suapie reflex at>
- Cc: libsigc++ list <libsigc-list gnome org>
- Subject: Re: [sigc] return value of emit()
- Date: Wed, 13 Jul 2005 17:20:40 +0200
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]