Boost logo

Boost :

Subject: Re: [boost] SafeInt code proposal
From: Omer Katz (omerktz_at_[hidden])
Date: 2009-06-21 14:02:40

Hi everyone,
first of all, thank you for your comments, and thank you for pointing out
David's library.
We actually haven't seen David's code until today, that you've mentioned
it... We had no idea that it existed
we asked about a month and a half ago (12.5.09) regarding adding a SafeInt
lib for boost, and no one actually replied, so did happen in the IRC, and
when we didn't find any other such thing in boost, we decided that it would
be a good idea to have something like that, under the boost licence.
Regarding David's work: indeed a great job, much more complete than ours for
the moment,
though we still think that such a library in boost will be a good idea.
we may suggest our help if David will decide to port histo boost,
or it's possible to keep developing a parrallel independent library, fixing
the portabilities issues and adding more functionality... We are aware that
there is still work to be done on our library

There is indeed an overflow flag as mentioned, but the library should be
platform independent, that's why it doesn't use it, though it will be
probably faster.

þþý"Omer Katz" <omerktz_at_[hidden]>ýþ ëúá áäåãòú
>A friend and I have started working on a SafeInt library which we hope will
> be included in Boost
> the library is composed of a template class, which excepts existing
> integer
> types as a parameter, and an exception class.
> not all operators have been implemented and there is still work to be done
> on the library, but we have reached a stage in which at least the basic
> operators are ready and tested.
> I've attached to this thread a zip file containing the code for the
> library
> and a tester we wrote (as an example for how the class should be used)
> I've also uploaded it to the boost vault.
> We would appreciate it if you took the time to review our code and give us
> your comments, tips and opinions (either as a reply to this thread or by
> email - omerktz_at_[hidden])
> thanks,
> Omer Katz and Zil Levi


> _______________________________________________
> Unsubscribe & other changes:

Boost list run by bdawes at, gregod at, cpdaniel at, john at