Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-22829

boost 1.48, Qt and [Parse error at "BOOST_JOIN"] error



    • Bug
    • Resolution: Done
    • P2: Important
    • 5.0.0
    • 4.7.3, 4.7.4, 4.8.0, 4.8.1
    • Build tools: moc
    • None


      I have large project with the mix of Qt and boost. I keep upgrading both Qt and boost to the latest available production releases. Currently I am on Qt 4.7.3 and boost 1.47. Recently a new boost build, 1.48 was released. When I compiled my project with this new boost release I started to get multiple errors "Parse error at "BOOST_JOIN", pointing to boost/type_traits/detail/has_binary_operator.hp(50)

      Naturally I thought that this is the boost problem, switched back to 1.47 and problem dissappeared. I posted the report on boost. I also found out that that this issue was already discussed in another boost thread and the conclusion was that it is MOCC bug. I received responses to my boost report where it was stated that the maintainer of the boost library definitely points out to a bug in Qt MOC compiler.

      Following are the links to the discussion:


      Last link suggests workaround for Qt, but it looks to be specific to the software they discuss.

      I believe that it might affect quite a large number of people/projects. I will appreciate if you can suggest a generic workaround to fix this issue.

      Please let me know if I can be of any assistance.


        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.



              ogoffart Olivier Goffart (Woboq GmbH)
              toran Michael B
              16 Vote for this issue
              29 Start watching this issue



                Gerrit Reviews

                  There are no open Gerrit changes