On 8/23/05 2:17 AM, "Daniel Krügler"
2) It seems as if the functions of common_factor_rt are prepared for that, although I only skimmed over the code. Honestly from the current boost docs in
(I wrote this.)
I could not extract the exact requirements on the template parameter for common_factor_rt. It just says "This type should be a numeric type that represents integers". What does that mean under the language restrictions of C++?
The type's operations should be like the ones for built-in integers. For instance, the functions need "quotient & remainder" type division.
(Note that the boost::rational docs describe specific requirements on this type, see corresponding section "Integer Type Requirements")
Basically any type that matches the description for boost::rational should also work for the common-factor functions (since my code was inspired by Paul's). -- Daryle Walker Mac, Internet, and Video Game Junkie darylew AT hotmail DOT com