|
Boost : |
From: Dan Nuffer (dnuffer_at_[hidden])
Date: 2001-02-19 13:29:09
Dan Nuffer wrote:
>
> > You may want to add compile libs/random/random_device.cpp, which is a
> > boost random number library front-end for /dev/urandom. Particularly
> > helpful on Linux.
> >
>
> Unfortunately this doesn't compile because of gcc's lack of a <limits>
> header. :-(
> Do you know a workaround? Maybe I could throw a limits into the boost/
> directory?
>
> --Dan Nuffer
I fixed it with the following patch:
--- boost/integer_traits.hpp.orig Mon Feb 19 07:55:59 2001
+++ boost/integer_traits.hpp Mon Feb 19 07:58:00 2001
@@ -18,7 +18,11 @@
#ifndef BOOST_INTEGER_TRAITS_HPP
#define BOOST_INTEGER_TRAITS_HPP
+#ifndef BOOST_NO_LIMITS
#include <limits>
+#else
+#include <boost/pending/limits.hpp>
+#endif
#include <boost/config.hpp>
// This is an implementation detail and not part of the interface
--Dan Nuffer
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk