Boost logo

Boost :

Subject: Re: [boost] Official warnings policy?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-11-11 14:45:59


Stewart, Robert wrote:
> I created a checked_cast that does a static_cast after validating against the upper and lower bounds, when necessary, for this very purpose. (Using TMP, it determines the signedness of the types involved, their relative sizes, etc., to compare as little as possible to validate the conversion.)

boost::numeric_cast does this, I think.

In Christ,
Steven Watanabe

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