Opened 11 years ago

Closed 11 years ago

#661 closed request (wontfix)

Segments are hard-coded as semi-open

Reported by: Peter Owned by: Jari Häkkinen
Priority: major Milestone:
Component: utility Version: 0.7.1
Keywords: Cc:

Description

Current implementation of class Segment are hard-coded as semi-open, i.e., begin point is included in segment and end point is not. Sometimes this is more practical to work with closed or open segments instead, i.e., both begin and end points are included or excluded, respectively.

The is, obviously, a fourth case to which should not be ignored: begin point excluded and end point included.

I'm thinking this could be included as an extra template parameter. Default should be as is now.

Change History (1)

comment:1 Changed 11 years ago by Peter

Milestone: yat 0.x+
Resolution: wontfix
Status: newclosed

The interval library in Boost (since v1.46) implements this so no need for yat.

http://www.boost.org/doc/libs/1_46_1/libs/icl/doc/html/index.html

Note: See TracTickets for help on using tickets.