Author: dreiss
Date: Thu Jan 29 23:46:46 2009
New Revision: 739083
URL: http://svn.apache.org/viewvc?rev=739083&view=rev
Log:
THRIFT-289. cpp: Fix "make check" by defining a comparator for "Instanity"
Added:
incubator/thrift/trunk/test/ThriftTest_extras.cpp
Added: incubator/thrift/trunk/test/ThriftTest_extras.cpp
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/test/ThriftTest_extras.cpp?rev=739083&view=auto
==============================================================================
--- incubator/thrift/trunk/test/ThriftTest_extras.cpp (added)
+++ incubator/thrift/trunk/test/ThriftTest_extras.cpp Thu Jan 29 23:46:46 2009
@@ -0,0 +1,14 @@
+// Extra functions required for ThriftTest_types to work
+
+#include <protocol/TDebugProtocol.h>
+#include "gen-cpp/ThriftTest_types.h"
+
+
+namespace thrift { namespace test {
+
+bool Insanity::operator<(thrift::test::Insanity const& other) const {
+ using facebook::thrift::ThriftDebugString;
+ return ThriftDebugString(*this) < ThriftDebugString(other);
+}
+
+}}