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

1,251 views
Skip to first unread message

qplace

unread,
Nov 18, 2011, 5:29:16 PM11/18/11
to boost...@lists.boost.org
When I switched from boost 1.47 to 1.48 I started to get multiple compile-time
errors: Parse error at "BOOST_JOIN", pointing to
boost/type_traits/detail/has_binary_operator.hp(50)

Falling back to 1.47 made this problem go away.

I found discussion about this problem here:
http://thread.gmane.org/gmane.comp.lib.boost.user/71406/focus=71459

There is a solution suggested in the above thread, but it is specific to the
software that the author has problems with.

Risking double-post, (I posted in this thread as well), I'd like to ask for
generic suggestion of fixing this problem in 1.48.

_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Jürgen Hunold

unread,
Nov 19, 2011, 3:38:47 PM11/19/11
to boost...@lists.boost.org
Hi qplace,

On Friday, 18. November 2011 23:29:16 qplace wrote:
> When I switched from boost 1.47 to 1.48 I started to get multiple
> compile-time errors: Parse error at "BOOST_JOIN", pointing to
> boost/type_traits/detail/has_binary_operator.hp(50)
>
> Falling back to 1.47 made this problem go away.
>
> I found discussion about this problem here:
> http://thread.gmane.org/gmane.comp.lib.boost.user/71406/focus=71459
>
> There is a solution suggested in the above thread, but it is specific to the
> software that the author has problems with.

Well, it is specific to Qt. Q_MOC_RUN is the designed workaround for missing
c++ support in the moc.

> Risking double-post, (I posted in this thread as well), I'd like to ask for
> generic suggestion of fixing this problem in 1.48.

Well, in the aforementioned thread the TypeTraits maintainer came to the
correct conclusion that this is definetely a moc bug. It simply fails to parse
several type_traits header which are valid c++.
So please file a bug at Qt's bugtracker for this. It would be nice if you could
post the ticket number here so we can track this.

Yours,

Jürgen
--
Dipl.-Math. Jürgen Hunold | IVE mbH
Software-Entwickler | Lützerodestraße 10
Tel: +49 511 897668 33 | 30161 Hannover, Germany
Fax: +49 511 897668 29 | http://www.ivembh.de
juergen...@ivembh.de |
| Geschäftsführer:
Sitz des Unternehmens: Hannover | Univ.-Prof. Dr.-Ing. Thomas Siefer
Amtsgericht Hannover, HRB 56965 | PD Dr.-Ing. Alfons Radtke

qplace

unread,
Nov 20, 2011, 12:10:22 PM11/20/11
to boost...@lists.boost.org
Jürgen Hunold <juergen.hunold <at> ivembh.de> writes:

> Well, in the aforementioned thread the TypeTraits maintainer came to the
> correct conclusion that this is definetely a moc bug. It simply fails to
parse
> several type_traits header which are valid c++.
> So please file a bug at Qt's bugtracker for this. It would be nice if you
could
> post the ticket number here so we can track this.
>
> Yours,
>
> Jürgen

Hi, Jurgen

Here is the link to the qt bug report:
https://bugreports.qt.nokia.com/browse/QTBUG-22829

I am somewhat pessimistic about a speedy response from Qt. May be the
maintainer of the boost library could suggest a general workaround that can
make 1.48 release compatible with 1.47 release? Otherwise I (and I think many
others) will be stuck with 1.47. Please let me know if I can assist in any way.

Regards,

Michael.

Reply all
Reply to author
Forward
0 new messages