Boost logo

Boost Users :

Subject: [Boost-users] [ICL] intersects(interval_set< int >, int) doesn't compile
From: John Reid (j.reid_at_[hidden])
Date: 2011-02-18 05:53:46


AFAICT from the docs the following should compile:

#include <boost/icl/interval_set.hpp>

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<int, less,
boost::icl::discrete_interval<int, less>, allocator> &, int)’

I'm using ICL in boost SVN revision 68965

John.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net