Boost logo

Boost :

From: Stephen Nutt (snutt_at_[hidden])
Date: 2002-09-07 09:53:54


The defintion of digits and digits10 is incorrect for the unsigned long
long. Currently they are
      BOOST_STATIC_CONSTANT(int, digits = sizeof(BOOST_LLT) * CHAR_BIT -1);
      BOOST_STATIC_CONSTANT(int, digits10 = (CHAR_BIT * sizeof (BOOST_LLT) -
1) * 301L / 1000);
but should be
      BOOST_STATIC_CONSTANT(int, digits = sizeof(BOOST_LLT) * CHAR_BIT);
      BOOST_STATIC_CONSTANT(int, digits10 = (CHAR_BIT * sizeof (BOOST_LLT))
* 301L / 1000);

Also, I did not get these definitions without having to first define
BOOST_NO_MS_INT64_NUMERIC_LIMITS. Should this not be defined in
config/compiler/visualc.hpp?

Thanks,

Stephen


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