Boost logo

Boost :

From: (noreply_at_[hidden])
Date: 2004-10-09 10:53:47

Bugs item #1043616, was opened at 2004-10-09 08:53
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: boost::rational documentation typos(?)

Initial Comment:
rational.html#Integer%20Type%20Requirements> states:

"I must be an integer-like type, that is the following expressions must
be valid for any two values n and m of type I, with the "expected"
n / m (must truncate, and n/m must be positive if n and m are

I doubt that that is what boost::rational requires.

int n = 1;
int m = 3;
int n_over_m = n/m;

if( n_over_m > 0)
    std::cout << "all OK\n";
} else {
    std::cout << "Can't use 'int' as base type for boost::rational\n";


"Rationals can be constructed from a pair (numerator, denominator)
of integers, or a single integer"

I think that the documentation should read:

"Rationals can be constructed from a pair (numerator, denominator)
of I's, or a single I"


You can respond by visiting:

This email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
Boost-bugs mailing list

Boost list run by bdawes at, gregod at, cpdaniel at, john at