Boost logo

Boost :

Subject: Re: [boost] safe integer library -- the scope
From: Andrzej Krzemienski (akrzemi1_at_[hidden])
Date: 2015-12-14 12:45:13

2015-12-14 18:34 GMT+01:00 Robert Ramey <ramey_at_[hidden]>:

> On 12/14/15 9:21 AM, Andrzej Krzemienski wrote:
>> 2015-12-14 17:39 GMT+01:00 Robert Ramey <ramey_at_[hidden]>:
> Ok, I see. So, there is something more to it than just the set of values.
>> safe<T> does not check upon conversion from T.
> I believe it does. If it doesn't it's a mistake.

It would make sense to skip the check:

  int i = whatever();
  safe<int> si (i); // this just cannot go wrong.

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