Eclipse Indigo Service Release 2 无法解析<boost/type_traits/is_base_of.hpp>
Boost 库的标头,因此报告boost::is_base_of
为未定义。特别是这会禁用使用此类的宏扩展。
这是演示此问题的代码示例(源代码):
Eclipse 在线抱怨DECLARE_TYPE(Foo, Bar)
错误Symbol 'is_base_of' could not be resolved
。Boost 包含路径被添加到项目包含路径中,Eclipse 不会抱怨它。Eclipse 不会对boost/type_traits/is_base_of.hpp
.
如何让Eclipse扩展宏?