
24 Oct
2005
24 Oct
'05
9:19 a.m.
"David Abrahams" <dave@boost-consulting.com> wrote
"Andy Little" <andy@servocomm.freeserve.co.uk> writes:
No, it's not what I said above. Remember, the usual runtime logic doesn't necessarily apply. my_rational<x,1> can be an integral constant *at compile time*. I'm not sure it's useful, but it's not insane.
BTW Another other issue in integrating tightly with integral constants is division. You need a special e.g rational_divides<IntorRatA,IntorRatB> function. regards Andy Little