The solution has been provided yesterday from here
We need to add -DBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
to the moc options too.
문제
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.
해결책
The solution has been provided yesterday from here
We need to add -DBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
to the moc options too.
다른 팁
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.