You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by dr...@apache.org on 2009/02/10 22:38:45 UTC

svn commit: r743111 - in /incubator/thrift/trunk/test: DebugProtoTest_extras.cpp Makefile.am

Author: dreiss
Date: Tue Feb 10 21:38:44 2009
New Revision: 743111

URL: http://svn.apache.org/viewvc?rev=743111&view=rev
Log:
cpp: Fix "make check" by defining a comparator for "Empty"

The TCompactProtocol revision added a "set<Empty>" in DebugProtoTest.
C++ needs a comparator in order to link this.

Added:
    incubator/thrift/trunk/test/DebugProtoTest_extras.cpp
Modified:
    incubator/thrift/trunk/test/Makefile.am

Added: incubator/thrift/trunk/test/DebugProtoTest_extras.cpp
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/test/DebugProtoTest_extras.cpp?rev=743111&view=auto
==============================================================================
--- incubator/thrift/trunk/test/DebugProtoTest_extras.cpp (added)
+++ incubator/thrift/trunk/test/DebugProtoTest_extras.cpp Tue Feb 10 21:38:44 2009
@@ -0,0 +1,13 @@
+// Extra functions required for DebugProtoTest_types to work
+
+#include "gen-cpp/DebugProtoTest_types.h"
+
+
+namespace thrift { namespace test { namespace debug {
+
+bool Empty::operator<(Empty const& other) const {
+  // It is empty, so all are equal.
+  return false;
+}
+
+}}}

Modified: incubator/thrift/trunk/test/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/test/Makefile.am?rev=743111&r1=743110&r2=743111&view=diff
==============================================================================
--- incubator/thrift/trunk/test/Makefile.am (original)
+++ incubator/thrift/trunk/test/Makefile.am Tue Feb 10 21:38:44 2009
@@ -19,7 +19,8 @@
 	gen-cpp/ThriftTest_constants.cpp \
 	gen-cpp/ThriftTest.cpp \
 	gen-cpp/ThriftTest_types.cpp \
-	ThriftTest_extras.cpp
+	ThriftTest_extras.cpp \
+	DebugProtoTest_extras.cpp
 
 libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la