Subject: Re: [boost] [constrained_value] need help with runtime error
From: Robert Kawulak (robert.kawulak_at_[hidden])
Date: 2008-12-10 22:19:40
> From: Neal Becker
> Steven Watanabe wrote:
> > It looks like the arithmetic operators may need to be overloaded
> > rather than relying on implicit conversions?
If you mean that they should be overloaded by the library itself, then this is
not necessarily a good idea. It is not possible to guess what should be the best
return type of arithmetic operators in general case. For some applications
returning a constrained value would be OK (but again there is the problem that
the constraint may reject the modified value) while for others it's better to
return the underlying type.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk