[Lemon-user] using lemon and BGL: ignore_unused_variable_warning

Balazs Dezso deba.mf at gmail.com
Mon May 18 15:48:38 CEST 2009


Hi,

I checked both the LEMON and BOOST codes, but the two functions are in 
distinct namespaces. Did you use 'using namespace *;' for both libraries? If 
yes, please try to omit one of them (the namespaces in C++ are aimed to solve 
such problems) with explicit using of the necessary classes. Otherwise, please 
send a bug report to our issue tracker with a short example code.

Best, Balazs

On Monday 18 May 2009 14:45:17 Christian Bähnisch wrote:
> Hello,
>
> I noticed that both in
> #include <boost/graph/graph_concepts.hpp>
> and in
> #include <lemon/graph_concepts.hpp>
>
> the helper template function "ignore_unused_variable_warning" is defined!
> Trying to write an BGL adaption of a ListGraph, for me gcc complains e.g.
> about
>
> "call of overloaded
> 'ignore_unused_variable_warning(lemon::ListGraphBase::Node&)' is ambiguous"
>
>  if the concept check functionality of BGL is used. Any suggestions on how
> to fix this?
>
> I hope someone is able to understand my problem. If not I can try to be
> more specific.
>
> greetings chris
>
> _______________________________________________
> Lemon-user mailing list
> Lemon-user at lemon.cs.elte.hu
> http://lemon.cs.elte.hu/mailman/listinfo/lemon-user




More information about the Lemon-user mailing list