Boost logo

Boost :

Subject: Re: [boost] [Review] Final Few Days for Formal Review of Proposed Boost.Ratio Library
From: Daniel Andersson (Daniel.Andersson_at_[hidden])
Date: 2010-10-08 08:41:13


Anthony Williams <anthony.ajw <at> gmail.com> writes:

> What is it?
> ========
> Portable implementation of the C++0x Standard Library's compile-time
> rational arithmetic working on C++03 and C++0x compilers. See the
> current C++0x working draft at
> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3126.pdf

This is not a review, just a question about what the library is
supposed to implement.

It appears that the implementation of the ratio arithmetic follows the
specification in n2798. The comments at the top of ratio.hpp also links
to n2798. The specification for ratio arithmetic has since changed. In
n3126, the specification of ratio_add reads:

"The type ratio_add<R1, R2> shall be a synonym for ratio<T1, T2> where
 T1 has the value R1::num * R2::den + R2::num * R1::den and T2 has the
 value R1::den * R2::den."

Regards,
Daniel

________________________________

This e-mail is confidential and may contain legally privileged information. It is intended only for the addressees. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message from your system.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk