From c04452eff2db9b5c524522f0dcf0b2e776115efd Mon Sep 17 00:00:00 2001 From: David Reiss Date: Thu, 29 Jan 2009 23:46:46 +0000 Subject: [PATCH] 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 --- test/ThriftTest_extras.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/ThriftTest_extras.cpp diff --git a/test/ThriftTest_extras.cpp b/test/ThriftTest_extras.cpp new file mode 100644 index 00000000..aa761a85 --- /dev/null +++ b/test/ThriftTest_extras.cpp @@ -0,0 +1,14 @@ +// Extra functions required for ThriftTest_types to work + +#include +#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); +} + +}} -- 2.17.1