sandbox:spatialIndex example compilation fails on gcc-4.2

Hi, Not sure if this known problem but example.cpp of spatial_index library fails to compile out of the box (this is latest version check out from svn repository). A brief look at the code shows that all avatar of spatial_index take two template-arguments but example calls it with one argument. Please find the error message pasted below. Thanks sandeep example.cpp:14: error: wrong number of template arguments (1, should be 3) ../../../boost/spatial_index/spatial_index.hpp:29: error: provided for 'template<class Point, class Value, class Index> class boost::spatial_index::spatial_index' example.cpp:14: error: invalid type in declaration before ';' token example.cpp:17: error: request for member 'get_nothing_count' in 'object', which is of non-class type 'int' example.cpp:18: error: request for member 'nothing' in 'object', which is of non-class type 'int' example.cpp:19: error: request for member 'get_nothing_count' in 'object', which is of non-class type 'int' example.cpp:21: error: request for member 'get_call_count' in 'object', which is of non-class type 'int' example.cpp:22: error: request for member 'nothing' in 'object', which is of non-class type 'int' example.cpp:23: error: request for member 'get_call_count' in 'object', which is of non-class type 'int' example.cpp:24: error: request for member 'get_nothing_count' in 'object', which is of non-class type 'int'
participants (1)
-
Sandeep Gupta