Boost logo

Boost Users :

From: Dave Steffen (dgsteffen_at_[hidden])
Date: 2005-06-10 11:47:42


Folks,

It looks to me like numeric_limits on GCC 3.2.3 is broken;
specifically,

              numeric_limits<double>::has_infinity = false
              numeric_limits<double>::infinity() == 0

I suspect boost/limits.hpp could fix this if it knew to do so; but
since <limits> exists, boost/limits.hpp doesn't 'fix' anything. Does
anyone have thoughts about (reasonably portable) ways to "convince"
boost/limits.hpp to provide numeric_limits even if the compiler
already has one?

Thanks!

----------------------------------------------------------------------
Dave Steffen, Ph.D. "There are two ways to write error-free
Software Engineer IV programs; only the third one works."
Numerica Corporation
ph (970) 419-8343 x27 "Pie are not square. Pie are round.
fax (970) 223-6797 Cornbread are square"
dgsteffen_at_[hidden] ... anon (usenet)


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net