So, I want to use the BOOST libraries to static-time check that my templates are being used by certain base classes, for example:

template <class T>
class A {
// Code here
}

So, I wanted to use BOOST_STATIC_ASSERT( ( boost::is_base_of<DesiredBaseClass, T>::value ) ), and this works great with GCC. However, Eclipse is being very annoying with this, and it listing errors (from its own parsers methinks).

The errors are:

Type 'T' could not be resolved (Code Analysis Problem)
Type 'DesiredBaseClass' could not be resolved (Code Analysis Problem)
Symbol 'value' could not be resolved (Semantic Error)

Does anyone know a good work around to stop Eclipse complaining? I could turn off its parser, but I think its generally pretty good at picking up problems.