Boost logo

Boost Users :

Subject: Re: [Boost-users] [numeric::converter] finding the smallest c such that (a/c) + (b/c) < inf
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-03-22 00:41:23


er wrote:
> Steven Watanabe wrote:
>> template<class T>
>> T fit_to_range(const T& x, const T& y) {
>> double max = (std::numeric_limits<T>::max)();
> Very helpful, thanks. May I ask : why double, not T?

cut and paste error. I was originally testing with plain doubles.

In Christ,
Steven Watanabe

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at