On 2006-07-04, Roland Levillain
<roland(a)lrde.epita.fr> wrote:
2006-07-04 Roland Levillain
<roland(a)lrde.epita.fr>
Improve C++ compliance.
* oln/topo/tarjan/tarjan_with_attr.hh (get_compute_impl): Prefix
calls to member functions of base class with `this->'.
Index: 10.228/olena/oln/topo/tarjan/tarjan_with_attr.hh
--- 10.228/olena/oln/topo/tarjan/tarjan_with_attr.hh Sat, 26 Jun 2004 23:19:24 +0200
thivol_d (oln/m/46_tarjan_wit 1.4 600)
+++ 10.228(w)/olena/oln/topo/tarjan/tarjan_with_attr.hh Tue, 04 Jul 2006 10:58:25 +0200
levill_r (oln/m/46_tarjan_wit 1.4 600)
@@ -167,7 +167,7 @@
oln_neighb_type(N) Q_prime(Ng, p_p);
for_all (Q_prime)
if (is_proc(Q_prime))
- uni(Q_prime.cur(), p_p);
+ this->uni(Q_prime.cur(), p_p);
if (to_comp_[p_p] == (ncomps_ + 1)) // new component
++ncomps_;
else
Hum... does it really change something?! o_O
Absolutely. Without this change, this code would not compile (at all)
on modern compilers (= more observant of the C++ ISO Standard).
Actually, this is a FAQ of C++ template programming. ;)