
13 Jan
2006
13 Jan
'06
2:39 p.m.
Christopher Kohlhoff wrote:
What should happen then if an out of range value is passed? The choice is between:
- Silently changing the values to something in the range 0..255.
Unacceptable, IMO.
- Throwing an exception (using boost::throw_exception of course, so that platforms that lack exceptions can use another way of handling the error).
- BOOST_ASSERT