[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: numeric limits patch



* Dave Symonds <dasymond@it.usyd.edu.au> [110504, 08:55]:
> On Mon, May 10, 2004 at 04:34:58PM +0200, Matteo Boccafoli wrote:
> > * Dave Symonds <dasymond@it.usyd.edu.au> [100504, 11:34]:
> > > That patch looks fine; I'm just worred about using std::numeric_limits<int>.
> > > I'm sure it's in the standard, but is it actually widely spread?
> > 
> > with g++-2.95  std::numeric_limits don't works :_(, 
> > but in 3.x relase it works fine.
> > 
> > Do You use other compiler?
> 
> I need to keep in mind that many people wanting to use GraphThing who are
> comfortable compiling it might still be using g++ 2.95 (or maybe earlier!).

I prefer to use g++-3.x for the C++. ;-)

> The arbitrary numbers I use in the code are big enough for any practical graph
> that could foreseeably be used in GraphThing.

Is possible to use FLT_MAX or DBL_MAX macro, from float.h (ISO C99),
work also in g++-2.95.

Matteo