stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r595289 - in /incubator/stdcxx/branches/4.2.x: doc/stdlibug/11-3.html examples/tutorial/icecream.cpp
Date Thu, 15 Nov 2007 12:34:32 GMT
Author: faridz
Date: Thu Nov 15 04:34:31 2007
New Revision: 595289

URL: http://svn.apache.org/viewvc?rev=595289&view=rev
Log:
2007-11-15 Farid Zaripov <farid_zaripov@epam.com>

	* examples/tutorial/icecream.cpp: define
	eventComparator::operator() as a const member.
	* doc/stdlibug/11-3.html: Ditto.

Modified:
    incubator/stdcxx/branches/4.2.x/doc/stdlibug/11-3.html
    incubator/stdcxx/branches/4.2.x/examples/tutorial/icecream.cpp

Modified: incubator/stdcxx/branches/4.2.x/doc/stdlibug/11-3.html
URL: http://svn.apache.org/viewvc/incubator/stdcxx/branches/4.2.x/doc/stdlibug/11-3.html?rev=595289&r1=595288&r2=595289&view=diff
==============================================================================
--- incubator/stdcxx/branches/4.2.x/doc/stdlibug/11-3.html (original)
+++ incubator/stdcxx/branches/4.2.x/doc/stdlibug/11-3.html Thu Nov 15 04:34:31 2007
@@ -52,7 +52,7 @@
 
 <UL><PRE>
 struct eventComparator {
-  bool operator() (const event * left, const event * right) {
+  bool operator() (const event * left, const event * right) const {
     return left-&gt;time &gt; right-&gt;time;
   }
 };

Modified: incubator/stdcxx/branches/4.2.x/examples/tutorial/icecream.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/branches/4.2.x/examples/tutorial/icecream.cpp?rev=595289&r1=595288&r2=595289&view=diff
==============================================================================
--- incubator/stdcxx/branches/4.2.x/examples/tutorial/icecream.cpp (original)
+++ incubator/stdcxx/branches/4.2.x/examples/tutorial/icecream.cpp Thu Nov 15 04:34:31 2007
@@ -48,7 +48,7 @@
 };
 
 struct eventComparator {
-    bool operator() (const event * left, const event * right) {
+    bool operator() (const event * left, const event * right) const {
         return left->time > right->time;
     }
 };



Mime
View raw message