fix some garbage / never used values, add infinity

clang --analyze brings up these warnings
oh sorry, I meant discarding the QL_INFINITY definition and replacing this
by QL_MAX_REAL in the patch for the BinomialDistribution

On 25 November 2014 at 10:41, Luigi Ballabio <notifications@github.com>
wrote:

> In QuantLib/ql/qldefines.hpp:
>
> > @@ -141,6 +141,10 @@
> >  #define QL_MAX_REAL            ((std::numeric_limits<QL_REAL>::max)())
> >  #define QL_MIN_POSITIVE_REAL   ((std::numeric_limits<QL_REAL>::min)())
> >  #define QL_EPSILON             ((std::numeric_limits<QL_REAL>::epsilon)())
> > +#define QL_INFINITY                                                            \
> > +    ((std::numeric_limits<QL_REAL>::has_infinity                               \
> > +          ? std::numeric_limits<QL_REAL>::infinity()                           \
> > +          : QL_MAX_REAL))
>
> Sorry, I'm not sure what "like this" means...
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/lballabio/quantlib/pull/173/files#r20851780>.
>