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/kj/vector.h | 17 +++-------------- 1 files changed, 3 insertions(+), 14 deletions(-) diff --git a/VisitFace/RtspNativeCodec/app/libs/capnproto/include/kj/vector.h b/VisitFace/RtspNativeCodec/app/libs/capnproto/include/kj/vector.h index f99c9e3..44613f3 100644 --- a/VisitFace/RtspNativeCodec/app/libs/capnproto/include/kj/vector.h +++ b/VisitFace/RtspNativeCodec/app/libs/capnproto/include/kj/vector.h @@ -43,7 +43,6 @@ public: inline Vector() = default; inline explicit Vector(size_t capacity): builder(heapArrayBuilder<T>(capacity)) {} - inline Vector(Array<T>&& array): builder(kj::mv(array)) {} inline operator ArrayPtr<T>() { return builder; } inline operator ArrayPtr<const T>() const { return builder; } @@ -70,18 +69,6 @@ setCapacity(size()); } return builder.finish(); - } - - template <typename U> - inline bool operator==(const U& other) const { return asPtr() == other; } - template <typename U> - inline bool operator!=(const U& other) const { return asPtr() != other; } - - inline ArrayPtr<T> slice(size_t start, size_t end) { - return asPtr().slice(start, end); - } - inline ArrayPtr<const T> slice(size_t start, size_t end) const { - return asPtr().slice(start, end); } template <typename... Params> @@ -116,7 +103,9 @@ } inline void clear() { - builder.resize(0); + while (builder.size() > 0) { + builder.removeLast(); + } } inline void truncate(size_t size) { -- Gitblit v1.8.0