diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2018-08-11 21:53:52 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2018-08-11 21:53:52 +0000 |
commit | 3e19cb7b358c72c1cd25e71fa54bb276190b1998 (patch) | |
tree | 0e6b7d1ae4dc806b62e49d2486e05d1b9376e259 /document | |
parent | 9bc10130d366f8a63549446cd730c739a9cc5a0c (diff) |
Avoid ambiguity in gcc 8.2
Diffstat (limited to 'document')
-rw-r--r-- | document/src/vespa/document/fieldvalue/stringfieldvalue.cpp | 2 |
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; } |