Boost logo

Boost Users :

Subject: Re: [Boost-users] [review][constrained_value] Review of Constrained Value Library begins today
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2008-12-03 11:15:46


Edward Diener wrote:

> I disagree with your analysis. The '26' value could be a run-time
> calculation and not just a compile-time constant. In which case you are
> saying that the assignment of a run-time calculation should assert only
> when run in debug mode and otherwise should be ignored. I can not agree
> with that idea.

I say it is up to the programmer to ensure valid values are provided.
If the value is only known at runtime, there should be explicit checking
in the code prior to assignment.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net