Boost logo

Boost Users :

Subject: [Boost-users] [units] Question about user-defined value types
From: W Z (zwt2002_at_[hidden])
Date: 2012-01-20 11:06:46


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?

Thanks,
WZ

                                               



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net