Boost logo

Boost Users :

From: Todd A. Gibson (tgibson_at_[hidden])
Date: 2005-02-21 01:57:40


Bug:
The header file boost/graph/transitive_closure.hpp contains an
unscoped call to not1(). This function is defined in both the std
namespace and the boost namespace (via boost/functional.hpp). If
boost/functional.hpp is included either directly or indirectly (e.g.,
via boost/multi_array.hpp) Then any attempted use of
transitive_closure() will not compile due to the ambiguity.

Solution:
Scope the call to not1 in boost/graph/transitive_closure.hpp:
std::not1

Note: This bug can be easily be reproduced by including
boost/functional.hpp (or boost/multi_array.hpp) To the example
program transitive_closure.cpp .

Thanks,
-TAG
Todd A. Gibson


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net