Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-03-04 08:13:14

From: "David Abrahams" <abrahams_at_[hidden]>

> 2. I still don't understand why rational is written this way, and would be
> very happy if someone could explain.

Umm, what was the question again? :-)

rational<T> operator+ (T t, rational<T> u);

doesn't work because in

1 + rational<long>(2, 3);

T can't be deduced, it may be int or long.

Peter Dimov
Multi Media Ltd.

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