The parse error is from Qt's tools moc and lconvert.  These tools do
not handle the entire C++ language; see the Qt issue
https://bugreports.qt.nokia.com/browse/QTBUG-22829

The workaround is to abuse the Boost header guards by defining it
on the moc/lconvert command line, thus avoiding having to parse
the boost headers.  Pass -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED
to the moc invocation.  If using cmake:

  QT4_WRAP_CPP(sources ${moc-sources} OPTIONS 
-DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED)

Attachment: signature.asc
Description: Digital signature

Reply via email to