Reputation: 7249
I'm trying to resolve this bug and a workaround suggested was to pass -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED
to moc.exe.
This question is related to mine. The difference is I want to add a MOC flag in a VS2010 project (VS add-in).
I've tried left click -> Qt Project Setting -> MocOptions and adding -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED
Note my problem occurs using boost 1.53.
Upvotes: 1
Views: 420
Reputation: 7249
The solution has been provided yesterday from here
We need to add -DBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
to the moc options too.
Upvotes: 2
Reputation: 1766
What you've tried is actually the right solution. However, you need to rebuild your project in order to work around the bug. When DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED is set, it changes the precompilation of your Boost headers. As you stated, you are using boost in precompiled headers. You have to rebuild them as well to fix your problem.
Upvotes: 1