From 02aab60af4ebfadb0a51d44135c734d91430e11d Mon Sep 17 00:00:00 2001
From: pans <pans@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期三, 09 八月 2017 10:39:03 +0800
Subject: [PATCH] update capnproto include file

---
 VisitFace/RtspNativeCodec/app/libs/capnproto/include/capnp/compat/json.h |   20 +-------------------
 1 files changed, 1 insertions(+), 19 deletions(-)

diff --git a/VisitFace/RtspNativeCodec/app/libs/capnproto/include/capnp/compat/json.h b/VisitFace/RtspNativeCodec/app/libs/capnproto/include/capnp/compat/json.h
index 47ba910..7fa815e 100644
--- a/VisitFace/RtspNativeCodec/app/libs/capnproto/include/capnp/compat/json.h
+++ b/VisitFace/RtspNativeCodec/app/libs/capnproto/include/capnp/compat/json.h
@@ -193,20 +193,6 @@
   void addFieldHandler(StructSchema::Field field, Handler<T>& handler);
   // Matches only the specific field. T can be a dynamic type. T must match the field's type.
 
-  // ---------------------------------------------------------------------------
-  // Hack to support string literal parameters
-
-  template <size_t size, typename... Params>
-  auto decode(const char (&input)[size], Params&&... params) const
-      -> decltype(decode(kj::arrayPtr(input, size), kj::fwd<Params>(params)...)) {
-    return decode(kj::arrayPtr(input, size - 1), kj::fwd<Params>(params)...);
-  }
-  template <size_t size, typename... Params>
-  auto decodeRaw(const char (&input)[size], Params&&... params) const
-      -> decltype(decodeRaw(kj::arrayPtr(input, size), kj::fwd<Params>(params)...)) {
-    return decodeRaw(kj::arrayPtr(input, size - 1), kj::fwd<Params>(params)...);
-  }
-
 private:
   class HandlerBase;
   struct Impl;
@@ -224,14 +210,10 @@
 // =======================================================================================
 // inline implementation details
 
-template <bool isDynamic>
-struct EncodeImpl;
-
 template <typename T>
 kj::String JsonCodec::encode(T&& value) {
-  Type type = Type::from(value);
   typedef FromAny<kj::Decay<T>> Base;
-  return encode(DynamicValue::Reader(ReaderFor<Base>(kj::fwd<T>(value))), type);
+  return encode(DynamicValue::Reader(ReaderFor<Base>(kj::fwd<T>(value))), Type::from<Base>());
 }
 
 template <typename T>

--
Gitblit v1.8.0