Boost logo

Boost :

From: Maarten Kronenburg (M.Kronenburg_at_[hidden])
Date: 2006-05-30 07:11:55


I do not agree with you.
First of all the function works for zero argument,
namely leaving the argument unchanged.
Second, negation is subtraction from zero,
so when subtractions with negative result
throw an exception, negation of
non-zero values should also throw an exception.
That is how the mathematics is defined.
Regards, Maarten.

"Bronek Kozicki" <brok_at_[hidden]> wrote in message
news:447C063F.6060209_at_rubikon.pl...
> Maarten Kronenburg wrote:
> > The negate() of a non-zero unsigned_integer
> > will always throw an exception.
>
> if function never works, it should not belong to interface.
>
>
> B.
>
> _______________________________________________
> Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk