Boost logo

Boost :

From: Gerhard Wesp (gwesp_at_[hidden])
Date: 2006-05-09 10:22:54

On, you write:

  rational c = a / b // where a and b are integers a=1 b=2
  integer d = a / b // c is one half, d is zero
  rational e = convert(a / b) // e is zero

I guess this can be achieved by some clever expression template magic,
but do you really want to go there? I've always tried to stick to the
"do it as the ints" philosophy, which does have the problems you
describe, but has the advantage of being consistent with the rest of the


Gerhard Wesp
ZRH office voice: +41 (0)44 668 1878
ZRH office fax: +41 (0)44 200 1818
For the rest I claim that raw pointers must be abolished.

Boost list run by bdawes at, gregod at, cpdaniel at, john at