$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [BGL] Implementing own graph types: Overloading in namespace boost or ADL?
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2012-03-23 13:28:25
On Fri, 23 Mar 2012, Philipp Moeller wrote:
> 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?
In the same namespace as the graph.
> This also would determine if BGL functions should be called qualified or
> unqualified outside of namespace boost.
They should be called unqualified; I try to make sure that examples do
that so that they will work on user-defined graph types.
-- Jeremiah Willcock