|
Boost : |
Subject: Re: [boost] Is there interest in portable integer overflow detection, with policy based handling?
From: Ben Robinson (cppmaven_at_[hidden])
Date: 2012-02-21 21:02:00
On Tue, Feb 21, 2012 at 9:29 AM, Cory Nelson <phrosty_at_[hidden]> wrote:
> On Tue, Feb 21, 2012 at 12:04 AM, Ben Robinson <cppmaven_at_[hidden]> wrote:
> > The implementation is complete, with 5 policies created (and users can
> > always create and use more). The policies are:
> >
> > ignore_overflow
> > throw_overflow
> > assert_overflow
> > saturate_overflow
> > nan_overflow
> >
> > The implementation is fully portable, and it provides integer types which
> > can be used like the builtin integers, except they will trigger their
> > policy on an overflow.
> >
> > Also, this library will integrate seamlessly with the Boost Constrained
> > Value Library (contributed by Robert Kawulak).
> >
> > Does this pique anyone's interest?
> >
>
> Yes! I've been using Microsoft's safeint (http://safeint.codeplex.com)
> for a while, but something more built into boost would be nice.
>
> Yea, I wanted to call my library SafeInt, but Microsoft's library already
uses that name. The same is true of BoundedInt, a great name but already
taken.
I would love for this library to be accepted into Boost, given the portable
nature of the implementation, and the attention to performance in the
implementation.
Thank you,
Ben Robinson
> --
> Cory Nelson
> http://int64.org
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk