22 Jan
2012
22 Jan
'12
3:45 a.m.
On Friday, January 20, 2012 8:06:46 AM UTC-8, W Z wrote:
Hi,
I am using boost units library for a project in which I need to define quantities using rational numbers. I have a rational number class but am having trouble integrating it with units library. There seems to be a lot of places where the units library implementation assumes that the conversion values are expressed as double type. Is there a good way to get around this to make units library support rational numbers?
Can you post a particular example? Does you rational type model a double type? what operation is that boost.units need and your class doesn't have? Thanks, Alfredo