
18 Feb
2011
18 Feb
'11
12:38 p.m.
John Reid wrote:
AFAICT from the docs the following should compile:
#include
namespace icl = ::boost::icl;
void interval_set_intersects() { icl::intersects( icl::interval_set< int >(), 1 ); }
but I get a no match error:
gcc.compile.c++ bin/gcc-4.4.3/debug/src/sandbox.o src/sandbox.cpp: In function ‘void interval_set_intersects()’: src/sandbox.cpp:7: error: No match for ‘intersects(boost::icl::interval_set
, allocator> &, int)’
Just a shot, but have you noticed the first argument is by reference, and you are passing a temporary? Does the following work: { icl::interval_set<int> iclset; icl::intersects( iclset, 1 ); } Jeff