Project

General

Profile

boost::signals, compile Wt with Qt

Added by Rustem Valeev about 12 years ago

conflict macro signals:

/usr/include/qt4/QtCore/qobjectdefs.h:69: #define signals protected
/usr/include/boost/signals/detail/signals_common.hpp:#define BOOST_SIGNALS_NAMESPACE signals
->
/usr/local/include/Wt/WSignal:
  template<class T, class V>
    boost::signals::connection connect(T *target,
                                       void (V::*method)(A1,A2,A3,A4,A5));
-->
#define QT_NO_KEYWORDS

? another solution exists


Replies (3)

RE: boost::signals, compile Wt with Qt - Added by Wim Dumon about 12 years ago

I ran into this interesting FAQ:

http://www.boost.org/doc/libs/1_49_0/doc/html/signals/s04.html#id3148889

To make Wt more Qt-friendly, we could consider to implement the preprocessor trick described there in our header files that use boost::signals types.

What do you think?

Best regards,

Wim.

RE: boost::signals, compile Wt with Qt - Added by Koen Deforche almost 12 years ago

Hey,

I think we should do that if possible, but if I understand correctly, the second suggestion will require us to change reference to boost::signals::connection (in the public API) to boost::signalslib::connection ?

Regards,

koen

RE: boost::signals, compile Wt with Qt - Added by Wim Dumon almost 12 years ago

recorded it as a feature request: #1248

    (1-3/3)