diff --git a/include/boost/signalslib.hpp b/include/boost/signalslib.hpp new file mode 100644 index 0000000000000000000000000000000000000000..6517ddba74ef7b98710d56b18fd4fd2e0d033c42 --- /dev/null +++ b/include/boost/signalslib.hpp @@ -0,0 +1,33 @@ +/* + * Walkaroung for Boost, Qt namespace clash + * + * Taken from boost documantation: + * http://www.boost.org/doc/libs/1_55_0/doc/html/signals/s04.html + */ + + +#ifndef SIGNALSLIB_HPP_INCLUDED +#define SIGNALSLIB_HPP_INCLUDED + +#if defined(signals) && defined(QOBJECTDEFS_H) && \ + !defined(QT_MOC_CPP) +# undef signals +# define signals signals +#endif + +#include +namespace boost +{ + namespace signalslib = signals; +} + +#if defined(signals) && defined(QOBJECTDEFS_H) && \ + !defined(QT_MOC_CPP) +# undef signals +// Restore the macro definition of "signals", as it was +// defined by Qt's . +# define signals protected +#endif + +#endif +