summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Reiss <dreiss@apache.org>2009-01-29 23:46:46 +0000
committerDavid Reiss <dreiss@apache.org>2009-01-29 23:46:46 +0000
commitc04452eff2db9b5c524522f0dcf0b2e776115efd (patch)
tree55dee3e84a457c9ac64d3c7759c5029ad83d3418
parent796381d857f3a51fd1b059200425c84326cbcfe3 (diff)
downloadthrift-c04452eff2db9b5c524522f0dcf0b2e776115efd.tar.gz
THRIFT-289. cpp: Fix "make check" by defining a comparator for "Instanity"
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739083 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--test/ThriftTest_extras.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/ThriftTest_extras.cpp b/test/ThriftTest_extras.cpp
new file mode 100644
index 000000000..aa761a85f
--- /dev/null
+++ b/test/ThriftTest_extras.cpp
@@ -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);
+}
+
+}}