Question

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.

Was it helpful?

Solution

The solution has been provided yesterday from here

We need to add -DBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION to the moc options too.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top