Boost logo

Boost :

From: christopher diggins (cdiggins_at_[hidden])
Date: 2004-05-15 18:31:57


----- Original Message -----
From: "Jeff Garland" <jeff_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Saturday, May 15, 2004 10:02 AM
Subject: Re: [boost] Ranged type mini-library submission

> On Fri, 14 May 2004 17:08:50 -0400, christopher diggins wrote
> > There has been some discussion previously on this list for a ranged
> > type. My personal desire was to have new double types in the ranges
> > [0.0, 1.0) and [0.0, 1.0] among other things. There are several
> > other uses that I can imagine. Feel free to rip this apart or do
> > whatever you want.
>
> Did you see this post?
>
> http://lists.boost.org/MailArchives/boost/msg64485.php
>
> Very similar to yours, but policy class also allows for customization
> of the error handling. So instead of forcing an assert you can throw an
> exception, ignore it, log it, whatever.

Embarassingly enough, I looked at it briefly, then I jumped to the mistaken
conclusion that it couldn't handle doubles so I rolled my own. After
rereading it I realized you have a very elegant piece of code there!

> We've had several discussions of a uses for these constrained types.
Perhaps
> you (or someone else) should boostify it?
>
> Jeff

I shall attempt to do so.

Christopher Diggins
http://www.cdiggins.com
http://www.heron-language.com


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk