[Lemon-devel] Compilation error with gcc 4.7.1
Robert Schwarz
schwarz at zib.de
Mon Aug 6 10:30:54 CEST 2012
Dear developers
sorry for not opening a ticket, but the Trac registration seems to be
broken:
"No handler matched request to /register"
I was happily using the Undirector from adapters.h until I updated my
GCC to version 4.7.1 and now get the following error message:
> include/lemon/adaptors.h: In instantiation of ‘lemon::Undirector<DGR>::Undirector(DGR&) [with DGR = DistanceGraph]’:
> DistanceGraph.cpp:194:31: required from here
> 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]
> include/lemon/adaptors.h:2280:7: note: declarations in dependent base ‘lemon::UndirectorBase<DistanceGraph>’ are not found by unqualified lookup
> include/lemon/adaptors.h:2280:7: note: use ‘this->initialize’ instead
Following the second note and add the "this->" does indeed solve the
problem.
Occured with Lemon 1.2, but the offensive code is still visisble in the
online code browser.
Best
--
Robert Schwarz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lemon.cs.elte.hu/pipermail/lemon-devel/attachments/20120806/e1e6afa8/attachment.asc>
More information about the Lemon-devel
mailing list