ekiga r7282 - trunk/lib/gmref



Author: jpuydt
Date: Sat Oct 25 07:47:46 2008
New Revision: 7282
URL: http://svn.gnome.org/viewvc/ekiga?rev=7282&view=rev

Log:
Added operator< to gmref_ptr so it can be used as a std::map key

Modified:
   trunk/lib/gmref/gmref.h

Modified: trunk/lib/gmref/gmref.h
==============================================================================
--- trunk/lib/gmref/gmref.h	(original)
+++ trunk/lib/gmref/gmref.h	Sat Oct 25 07:47:46 2008
@@ -78,6 +78,8 @@
 
   bool operator!=(const gmref_ptr<T>& other) const;
 
+  bool operator<(const gmref_ptr<T>& other) const;
+
 private:
 
   template<typename Tprim> friend class gmref_ptr;
@@ -184,6 +186,13 @@
 }
 
 template<typename T>
+bool
+gmref_ptr<T>::operator<(const gmref_ptr<T>& other) const
+{
+  return obj < other.obj;
+}
+
+template<typename T>
 void
 gmref_ptr<T>::reset ()
 {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]