Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-08-06 18:44:51


From: "Darin Adler" <darin_at_[hidden]>
>
> On Tuesday, August 6, 2002, at 03:18 PM, David Abrahams wrote:
>
> > -#elif defined(ULLONG_MAX)
> > +#elif defined(ULLONG_MAX) && defined(ULLONG_MIN)
> > static unsigned BOOST_LLT min(){ return ULLONG_MIN; }
> > static unsigned BOOST_LLT max(){ return ULLONG_MAX; }
> > -#elif defined(ULONGLONG_MAX)
> > +#elif defined(ULONGLONG_MAX) && defined(ULONG_LONG_MIN)
> > static unsigned BOOST_LLT min(){ return ULONGLONG_MIN; }
> > static unsigned BOOST_LLT max(){ return ULONGLONG_MAX; }
> > #else
>
> What about the alternative where you return 0 instead of ULLONG_MIN and
> ULONGLONG_MIN?

If you like that patch better, be my guest. This one seems to work.

-----------------------------------------------------------
           David Abrahams * Boost Consulting
dave_at_[hidden] * http://www.boost-consulting.com


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk