Boost logo

Boost Users :

Subject: Re: [Boost-users] has_binary_operator.hpp error
From: Mark Brand (mabrand_at_[hidden])
Date: 2011-11-18 16:20:00


Frédéric Bron wrote:
>> I am having exactly the same problem, compiling boost+Qt sources with 1.48
>> release of boost. What might be of interest for everyone having this problem is
>> that in my case I don't explicitly specify #include<boost/type_traits.hpp> in
>> code. It might be used in some other boost headers that I have plenty in my
>> code.
> It would help if somebody could give the output of the preprocessor.
> With g++, just add -E option and compile one failing file.
> This may help understand the error with BOOST_JOIN. Is there #undef
> BOOST_JOIN somewhere?
> Frédéric
>

Hi Frédéric,

It's not the C++ preprocessor, but Qt's moc that chokes on BOOST_JOIN.
The workaround I proposed to the CGAL list at
https://lists-sop.inria.fr/sympa/arc/cgal-discuss/2011-11/msg00087.html
just instructs the moc preprocessor to skip the #include that introduces
BOOST_JOIN.

Mark


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net