Boost logo

Boost :

From: Tarjei Knapstad (tarjei.knapstad_at_[hidden])
Date: 2007-04-18 04:26:24


On 4/17/07, Efi Fogel <efifogel_at_[hidden]> wrote:
> Dear BGL developers,
>
> I believe that I've encountered a bug in the BGL version 103200.
>
> File boost/graph/detail/array_binary_tree.hpp, Lines 157 and 158 contain the
> following statements:
>
> edata[ boost::get(id, tmp) ] = i;
> edata[ boost::get(id, value()) ] = x.i;
>
> I think that the qualification should be removed.
>
> The first parameter 'id' in both calls is of type 'ID', which is a template
> parameter. It could be instantiated with a type defined in a different
> namespace, say CGAL. The global 'get()' function, which accept the CGAL id
> parameter is also defined in CGAL namespace. It must, because other calls to
> the get() function do not have the qualification, and according to ADL
> (Koenig Lookup), the function is searched in CGAL namespace. As a
> consequence the compiler (g++ >= 4.1.0) complains that there is no match and
> reports an error.

Efi,

You should report this to the Boost bugtracker. The bugtracker is
available here:

https://sourceforge.net/tracker/?group_id=7586&atid=107586

--
Tarjei

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk