2
0
mirror of https://github.com/boostorg/graph.git synced 2026-01-30 07:52:10 +00:00

fixed g++ with STLport problem with source(std::pair<T,T>,G)

[SVN r9354]
This commit is contained in:
Jeremy Siek
2001-02-27 06:33:08 +00:00
parent 37f4440d1d
commit 230e30aee3

View File

@@ -82,4 +82,14 @@ T source(std::pair<T,T> p, const G&) { return p.first; }
template <class T, class G>
T target(std::pair<T,T> p, const G&) { return p.second; }
#if defined(__GNUC__) && defined(__SGI_STL_PORT)
// For some reason g++ with STLport does not see the above definition
// of source() and target() unless we bring them into the boost
// namespace.
namespace boost {
using ::source;
using ::target;
}
#endif
#endif /* BOOST_GRAPH_TRAITS_HPP*/