Boost logo

Boost :

From: John Max Skaller (skaller_at_[hidden])
Date: 2001-05-10 18:44:45


John Max Skaller wrote:

> fixed_base<INT,n> operator += (fixed_base i) { v+=i.v; }
> fixed_base<INT,n> operator -= (fixed_base i) { v+=i.v; }
> fixed_base<INT,n> operator *= (fixed_base<INT,0> i) { v+=i.v; }
> fixed_base<INT,n> operator %= (fixed_base<INT,0> i) { v/=i.v; }

        Woops! That should be:

    fixed_base<INT,n> operator %= (fixed_base i) { v/=i.v; }

ALSO: I neglected to provide 'max' and 'min': are they
covered automatically by STL?

-- 
John (Max) Skaller, mailto:skaller_at_[hidden]
10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
checkout Vyper http://Vyper.sourceforge.net
download Interscript http://Interscript.sourceforge.net

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