Is there/ was there ever a compile-time rational in boost?
Looking through the news-list I have found some discussion back in 2004 about a rational_c and a fixed_c class. http://lists.boost.org/Archives/boost/2004/06/66297.php Unfortunately the thread is broken up. The posters seem to use pairs of integers to represent rational numbers at compile time, apparently with specializations of MPL meta functions. Does anybody know what ever became of this? (I just spent all day writing something similar, but probably worse :) ) --John
On Fri, Aug 1, 2008 at 6:54 AM, John C. Femiani
Looking through the news-list I have found some discussion back in 2004 about a rational_c and a fixed_c class.
IIRC this topic came up in discussion about one of the several quantitative units libraries proposed. Consensus was that there wasn't sufficient demand for it, and to keep the implementation internal. That said, the units library has just been included in 1.36 beta; you might have a look there. --Joel
participants (2)
-
Joel C. Salomon
-
John C. Femiani