summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2016-11-30 18:06:54 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2016-12-12 02:55:41 +0100
commit602bb910df6998d0f7c56a67d2707c9c6c2e7d58 (patch)
treebb0d0f57b4de9e3ef8ea03d29929747f586e8d40 /document
parentc650f2f379179780d428fb5505a0ed3d52f48ba4 (diff)
Targeted include
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/fieldvalue/structuredfieldvalue.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/document/src/vespa/document/fieldvalue/structuredfieldvalue.cpp b/document/src/vespa/document/fieldvalue/structuredfieldvalue.cpp
index e24819204a8..405bcb93947 100644
--- a/document/src/vespa/document/fieldvalue/structuredfieldvalue.cpp
+++ b/document/src/vespa/document/fieldvalue/structuredfieldvalue.cpp
@@ -1,6 +1,6 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/document/fieldvalue/structuredfieldvalue.h>
+#include <vespa/document/fieldvalue/structuredfieldvalue.hpp>
#include <vespa/document/base/field.h>
#include <vespa/document/fieldvalue/fieldvalues.h>
#include <vespa/vespalib/util/exceptions.h>
@@ -172,4 +172,10 @@ StructuredFieldValue::onIterateNested(
}
}
+using ConstCharP = const char *;
+template void StructuredFieldValue::set(const vespalib::stringref & field, const int32_t & value);
+template void StructuredFieldValue::set(const vespalib::stringref & field, const int64_t & value);
+template void StructuredFieldValue::set(const vespalib::stringref & field, const double & value);
+template void StructuredFieldValue::set(const vespalib::stringref & field, const ConstCharP & value);
+
} // document