|
Boost : |
Subject: Re: [boost] [graph] MAXINT problem
From: Brandon Kohn (blkohn_at_[hidden])
Date: 2008-09-24 09:16:05
Hello :-)
Not to be coy, but I would suggest using:
#include <limits>
...
(std::numeric_limits<int>::max)();
Cheers,
Brandon
--------------------------------------------------
From: "Janek Kozicki" <janek_listy_at_[hidden]>
Sent: Wednesday, September 24, 2008 3:57 AM
To: <boost_at_[hidden]>
Subject: [boost] [graph] MAXINT problem
> Hi,
>
> I just noticed that in file
>
> http://svn.boost.org/svn/boost/trunk/boost/graph/sloan_ordering.hpp
>
> there is this line:
>
> #define MAXINT 2147483647
>
> I'm afraid that it can conflict with MAXINT defined elsewhere. Or at
> least cause some confusion between MAXINT and INT_MAX from <limits.h>
>
> Wouldn't it be better to just #include <limits.h> and use INT_MAX defined
> there?
>
> --
> Janek Kozicki |
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk