Boost logo

Boost :

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


I was seeing the following symptom:

In file included from c:/boost/boost/graph/visitors.hpp:36,
                 from c:/boost/boost/graph/breadth_first_search.hpp:38,
                 from ..\..\..\libs\python\src/object\inheritance.cpp:8:
c:/boost/boost/limits.hpp: In function `static long long unsigned int
numeric_limits<long long unsigned int>::min()':
c:/boost/boost/limits.hpp:94: `ULLONG_MIN' undeclared (first use this
function)
c:/boost/boost/limits.hpp:94: (Each undeclared identifier is reported only
once
c:/boost/boost/limits.hpp:94: for each function it appears in.)
c:/boost/boost/limits.hpp:94: warning: control reaches end of non-void
function `numeric_limits<long long unsigned int>::min()'

To fix it I am checking in the following patch:

Index: boost/limits.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/limits.hpp,v
retrieving revision 1.5
diff -w -u -r1.5 limits.hpp
--- boost/limits.hpp 22 Jul 2002 11:00:20 -0000 1.5
+++ boost/limits.hpp 6 Aug 2002 22:30:50 -0000
@@ -90,10 +90,10 @@
 #ifdef BOOST_HAS_MS_INT64
       static unsigned BOOST_LLT min(){ return 0ui64; }
       static unsigned BOOST_LLT max(){ return 0xFFFFFFFFFFFFFFFFui64; }
-#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

-----------------------------------------------------------
           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