2011/2/21 Joachim Faulhaber
Hi John, lists,
I am replying to your ticket #5207 on the lists because I am afraid that you walked into a trap that others can fall into as well.
[...]
So please note that
interval<myType> myInterval;
can not be used as an interval type in ICL functions.
Please use interval<myType>::type myInterval;
or one of the specific interval types
discrete_interval, continuous_interval, (dynamic borders) closed_interval, right_open_interval, left_open_interval, open_interval (static borders)
This reduces John's non compilable ICL statements in the following way:
BOOST_AUTO_TEST_CASE(ticket_5207) { [...] // Here you are right, John: // The next 4 lines should compile according // to the docs, but don't icl::disjoint( int_map, int_element ); icl::disjoint( int_map, int_segment ); icl::intersects( int_map, int_segment ); icl::intersects( int_map, int_element ); // I will complete the library here. }
DONE Regards, Joachim -- Interval Container Library [Boost.Icl] http://www.joachim-faulhaber.de