I'm trying to complete the boost::signal tutorial at http://www.boost.org/doc/libs/1_47_0/doc/html/signals/tutorial.html#id2850736
However Eclipse CDT shows parsing errors with whichever syntax I use
I have
#include <boost/signals.hpp>
Preferred syntax
boost::signal<void (float, float)> sig;
sig.connect(&print_sum);
Invalid template arguments at signal
Method 'connect' could not be resolved
Portable syntax
boost::signal2<float, float, float> sig;
sig.connect(&print_sum);
Method 'connect' could not be resolved
Symbol 'signal2' could not be resolved
I use eclipse 3.7