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. -- murr...@murrayc.com www.murrayc.com www.openismus.com _______________________________________________ libsigc-list mailing list libsigc-list@gnome.org http://mail.gnome.org/mailman/listinfo/libsigc-list