Boost logo

Boost :

Subject: Re: [boost] New Boost.XInt Library, request preliminary review
From: Stewart, Robert (Robert.Stewart_at_[hidden])
Date: 2010-03-30 11:45:04

Scott McMurray wrote:
> On 30 March 2010 10:04, Chad Nelson
> <chad.thecomfychair_at_[hidden]> wrote:
> >
> > Which isn't necessarily the best way to do it, and
> > certainly isn't the
> > only one. There is effectively zero runtime cost for XInt's
> > exception-blocking mechanism, since the code used for it is only
> > evaluated when an exception needs to be thrown.
> Second, the blocking is stateful. That means that if I write another
> library that accepts xints, I'll have to either write every function
> to work no matter the blocking mode or change it to what I want to
> work with. This state maintenance means bringing in the threading
> complications that are otherwise unnecessary.

With a policy-based approach, Scott's library specifies which behavior it wants. It might need to provide interfaces to accept the other type, too, but that's a conscious choice.

Rob Stewart robert.stewart_at_[hidden]
Software Engineer, Core Software using std::disclaimer;
Susquehanna International Group, LLP

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.

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