Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=6bdc2b143d55f76f440cb397f177b847e4ebbde6

commit 6bdc2b143d55f76f440cb397f177b847e4ebbde6
Author: Michel Hermier <[email protected]>
Date:   Fri Aug 22 15:45:50 2014 +0200

libpacman: Fix missing cont to iterator comparison operators.

diff --git a/lib/libpacman/util/fptrlist.h b/lib/libpacman/util/fptrlist.h
index 866c6af..501e8ae 100644
--- a/lib/libpacman/util/fptrlist.h
+++ b/lib/libpacman/util/fptrlist.h
@@ -124,14 +124,14 @@ namespace flib
return *this;
}

-               bool operator == (const_self_reference_type o)
+               bool operator == (const_self_reference_type o) const
{
return m_iterable == o.m_iterable;
}

-               bool operator != (const_self_reference_type o)
+               bool operator != (const_self_reference_type o) const
{
-                       return !operator == (o.m_iterable);
+                       return !operator == (o);
}

self_reference_type operator ++ ()
@@ -198,14 +198,14 @@ namespace flib
return *this;
}

-               bool operator == (const_self_reference_type o)
+               bool operator == (const_self_reference_type o) const
{
return m_iterable == o.m_iterable;
}

-               bool operator != (const_self_reference_type o)
+               bool operator != (const_self_reference_type o) const
{
-                       return !operator == (o.m_iterable);
+                       return !operator == (o);
}

self_reference_type operator ++ ()
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to