summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2018-08-11 21:53:52 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2018-08-11 21:53:52 +0000
commit3e19cb7b358c72c1cd25e71fa54bb276190b1998 (patch)
tree0e6b7d1ae4dc806b62e49d2486e05d1b9376e259 /document
parent9bc10130d366f8a63549446cd730c739a9cc5a0c (diff)
Avoid ambiguity in gcc 8.2
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/fieldvalue/stringfieldvalue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/document/src/vespa/document/fieldvalue/stringfieldvalue.cpp b/document/src/vespa/document/fieldvalue/stringfieldvalue.cpp
index d49f6e28a76..d79535d54cd 100644
--- a/document/src/vespa/document/fieldvalue/stringfieldvalue.cpp
+++ b/document/src/vespa/document/fieldvalue/stringfieldvalue.cpp
@@ -109,7 +109,7 @@ FieldValue & StringFieldValue::assign(const FieldValue & rhs)
if (rhs.inherits(StringFieldValue::classId)) {
*this = static_cast<const StringFieldValue &>(rhs);
} else {
- *this = static_cast<stringref >(rhs.getAsString());
+ *this = rhs.getAsString().operator stringref();
}
return *this;
}