Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost][boost-users][ICL] ICL Compilation errors. Ticket #5207
From: Joachim Faulhaber (afojgo_at_[hidden])
Date: 2011-02-22 02:53:28


2011/2/21 Joachim Faulhaber <afojgo_at_[hidden]>:
> 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

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