Re: [sigc] is possible make the emission of a signal private for a particular class?
- From: Murray Cumming <murrayc murrayc com>
- To: "R. Douglas Barbieri" <dooglio gmail com>
- Cc: Libsigc++ <libsigc-list gnome org>
- Subject: Re: [sigc] is possible make the emission of a signal private for a particular class?
- Date: Fri, 07 May 2010 08:59:16 +0200
On Thu, 2010-05-06 at 18:12 -0700, R. Douglas Barbieri wrote:
> Watch out when using libsigc++ with Qt4...Qt creates a macro called
> "emit()." This creates all kinds of bizarre errors when you try to
> call "emit()" on your signal object. I just #undef the Qt "emit()"
> macro at the top of the class file and have no issues after that. But
> man did it take me a long time to figure that out. :-)
>
>
> (Sorry Stephen, but I meant to reply to all)
>
> An addendum: I dislike undeffing the emit() macro because I didn't
> know what they created it in the first place, so this could cause
> something somewhere else to break in Qt.
It's just syntactic sugar. I think it's defined to nothing.
It may help to define QT_NO_EMIT before including any Qt header.
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]