summaryrefslogtreecommitdiffstats
path: root/staging_vespalib/src/vespa/vespalib/objects/serializer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'staging_vespalib/src/vespa/vespalib/objects/serializer.hpp')
-rw-r--r--staging_vespalib/src/vespa/vespalib/objects/serializer.hpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/staging_vespalib/src/vespa/vespalib/objects/serializer.hpp b/staging_vespalib/src/vespa/vespalib/objects/serializer.hpp
index e428be5a348..cc49f758ae6 100644
--- a/staging_vespalib/src/vespa/vespalib/objects/serializer.hpp
+++ b/staging_vespalib/src/vespa/vespalib/objects/serializer.hpp
@@ -1,10 +1,9 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
-#include <vespa/vespalib/objects/fieldbase.h>
#include <vespa/vespalib/util/array.h>
#include <vector>
-#include <stdint.h>
+#include <cstdint>
namespace vespalib {
@@ -12,7 +11,7 @@ template <typename T>
Serializer &
Serializer::operator << (const vespalib::Array<T> & v) {
uint32_t sz(v.size());
- put(_sizeField, sz);
+ put(sz);
for(size_t i(0); i < sz; i++) {
(*this) << v[i];
}
@@ -22,7 +21,7 @@ template <typename T>
Serializer &
Serializer::operator << (const std::vector<T> & v) {
uint32_t sz(v.size());
- put(_sizeField, sz);
+ put(sz);
for(size_t i(0); i < sz; i++) {
(*this) << v[i];
}