Boost logo

Boost Users :

Subject: [Boost-users] [BGL] Implementing own graph types: Overloading in namespace boost or ADL?
From: Philipp Moeller (philipp.moeller_at_[hidden])
Date: 2012-03-23 10:04:30

The documentation does not explicitly mention which of both approaches
is recommended to implement the free function of the graph concepts for
a custom graph. Usually the graph will be in its own namespace.

Should the free functions be declared in the boost namespace or in the
same namespace as the graph?

This also would determine if BGL functions should be called qualified or
unqualified outside of namespace boost.

Philipp Moeller

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at