Boost logo

Boost :

From: Douglas Gregor (doug.gregor_at_[hidden])
Date: 2005-06-09 11:02:46

On Jun 8, 2005, at 6:30 PM, Juan Antonio Gálvez Gamboa wrote:

> Greetings to everyone. It seems there´s a bug when
> using the astar_search.hpp in the dummie property map
> section.
> [snip]
> I´m using Visual C++ .NET 2003 and it seems it´s
> getting a confusion between:
> std::numeric_limits<C>::max())
> and a macro called max, defined somewhere, whose body
> would be:
> #define max(((a)>(b))?(a):(b))
> [snip]
> I´m not sure if this is an atar_search bug but, in
> case it´s not and ,so that, I have a "max" macro
> defined, any suggestions where should I fin it for
> modifying it´s name to MAX or directly deleted from
> the header file?.

We try to work around this problem within the BGL. The fix is to put
BOOST_PREVENT_MACRO_SUBSTITUTION between the "max" and the "()" in
aster_search.hpp. I've fixed the problem in Boost CVS.

Thanks for the bug report!


Boost list run by bdawes at, gregod at, cpdaniel at, john at