COIN-OR::LEMON - Graph Library

Opened 11 years ago

Closed 10 years ago

#467 closed defect (fixed)

[PATCH] GCC 4.7: compile error using lemon::Undirector (argument-dependent lookup)

Reported by: dfuhrmann Owned by: Alpar Juttner
Priority: major Milestone:
Component: core Version: release branch 1.2
Keywords: Cc:
Revision id:

Description

Recently I switched to gcc 4.7 and got the following error with lemon version 1.2.3

In file included from topologyGenerator/TopologyGenerator.cpp:13:0:
binaries/others/include/lemon/adaptors.h: In instantiation of 'lemon::Undirector<DGR>::Undirector(DGR&) [with DGR = lemon::FilterArcs<const lemon::ListDigraph>]':
topologyGenerator/TopologyGenerator.cpp:33:92:   required from here
binaries/others/include/lemon/adaptors.h:2280:7: error: 'initialize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
binaries/others/include/lemon/adaptors.h:2280:7: note: declarations in dependent base 'lemon::UndirectorBase<lemon::FilterArcs<const lemon::ListDigraph> >' are not found by unqualified lookup
binaries/others/include/lemon/adaptors.h:2280:7: note: use 'this->initialize' instead
scons: *** [topologyGenerator/TopologyGenerator.o] Error 1

I saw that this is already fixed in developement branch if lemon, but it would be cool if you could also backport this for 1.2.x. Attached is a patch for that, according to the gcc output, which fixes the problem.

Attachments (1)

lemon-fix-permissive.patch (385 bytes) - added by dfuhrmann 11 years ago.
lemon fix permissive patch

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by dfuhrmann

Attachment: lemon-fix-permissive.patch added

lemon fix permissive patch

comment:1 Changed 10 years ago by Alpar Juttner

Resolution: fixed
Status: newclosed

This issue has since been backported to 1.2.x as [761fe0846f49], and was even released in version 1.2.4

Note: See TracTickets for help on using tickets.