From: David Reiss Date: Thu, 29 Jan 2009 23:46:46 +0000 (+0000) Subject: THRIFT-289. cpp: Fix "make check" by defining a comparator for "Instanity" X-Git-Tag: 0.2.0~355 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=c04452eff2db9b5c524522f0dcf0b2e776115efd;p=common%2Fthrift.git 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 --- 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); +} + +}}