Thrift: Added support for double type across all languages
Summary: Just for completeness cause I'm crazy. Let's never use these!
Notes: Also made thrift grammar support # style comments, so you can do this at the top of your files
#!/usr/local/bin/thrift --cpp
/**
* This is a thrift def file youc an invoke directly and gen code!
*/
blah
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664789 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/protocol/TBinaryProtocol.h b/lib/cpp/src/protocol/TBinaryProtocol.h
index 5bca6dd..7f36a57 100644
--- a/lib/cpp/src/protocol/TBinaryProtocol.h
+++ b/lib/cpp/src/protocol/TBinaryProtocol.h
@@ -80,6 +80,10 @@
uint32_t writeI64(shared_ptr<TTransport> out,
const int64_t i64) const;
+ uint32_t writeDouble(shared_ptr<TTransport> out,
+ const double dub) const;
+
+
uint32_t writeString(shared_ptr<TTransport> out,
const std::string& str) const;
@@ -141,6 +145,9 @@
uint32_t readI64(shared_ptr<TTransport> in,
int64_t& i64) const;
+ uint32_t readDouble(shared_ptr<TTransport> in,
+ double& dub) const;
+
uint32_t readString(shared_ptr<TTransport> in,
std::string& str) const;
};