COIN-OR::LEMON - Graph Library

Opened 12 years ago

Last modified 12 years ago

#458 closed defect

Invalid use of unqualified lookup — at Version 1

Reported by: Krzysztof Ciebiera Owned by: Alpar Juttner
Priority: minor Milestone: LEMON 1.3 release
Component: core Version: hg main
Keywords: Cc:
Revision id:

Description (last modified by Alpar Juttner)

I was trying to compile my code with clang and gcc.4.7.2 and it didn't work. I have found solution to my problems at http://clang.llvm.org/compatibility.html#dep_lookup_bases

I didn't read C++ specification, but since it doesn't work in both gcc and clang maybe they have the point.

So there are at least two places in lemon code where this-> keyword is missing. In /include/lemon/bits/edge_set_extender.h (probably more). Patch that fixed my problem is following:

526c526
<       return e.direction ? this->u(e) : this->v(e);
---
>       return e.direction ? u(e) : v(e);
532c532
<       return e.direction ? this->v(e) : this->u(e);
---
>       return e.direction ? v(e) : u(e);

Change History (1)

comment:1 Changed 12 years ago by Alpar Juttner

Description: modified (diff)
Note: See TracTickets for help on using tickets.