COIN-OR::LEMON - Graph Library

Opened 12 years ago

Closed 12 years ago

#458 closed defect (duplicate)

Invalid use of unqualified lookup

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 (2)

comment:1 Changed 12 years ago by Alpar Juttner

Description: modified (diff)

comment:2 Changed 12 years ago by Alpar Juttner

Resolution: duplicate
Status: newclosed

This issue has already solved in [761fe0846f49], see #449 for some more details.

Note: See TracTickets for help on using tickets.