Eclipse Indigo代码分析失败了

时间:2011-11-18 13:40:33

标签: eclipse boost code-analysis eclipse-indigo

Eclipse Indigo Service Release 2无法解析Boost库的<boost/type_traits/is_base_of.hpp>标头,因此将boost::is_base_of报告为未定义。特别是这会禁用使用此类的宏扩展。

以下是演示此问题的代码示例(source code):

enter image description here

Eclipse在DECLARE_TYPE(Foo, Bar)行投诉,错误为Symbol 'is_base_of' could not be resolved。 Boost包含路径添加到项目包含路径,Eclipse不会抱怨它。 Eclipse不会在boost/type_traits/is_base_of.hpp中的任何行上抱怨。

如何让Eclipse扩展宏?

1 个答案:

答案 0 :(得分:0)

https://bugs.eclipse.org/bugs/show_bug.cgi?id=373208中所述,这是一个错误,但最新的每晚构建和Juno里程碑都已修复。问题是当前版本的Eclipse不支持boost/type_traits/is_base_of.hpp中使用的条件包含。

因此,当使用最新版本或Juno里程碑时 - 宏被正确扩展。

相关问题