aboutsummaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@yahooinc.com>2023-09-29 14:47:26 +0200
committerTor Egge <Tor.Egge@yahooinc.com>2023-09-29 14:47:26 +0200
commita02e3f90f7885909e078ecff7baa77830f1afbd3 (patch)
tree7ecdb70f044e04e7731ba25c5345f1c4b2bfdace /document
parentf0862db365dd351f5adc480649f9aba18cbd409d (diff)
Add missing includes, avoid shadow warning and skip including file not
present in llvm 17. Issues detected when compiling with clang++ 17 / libc++ 17 / llvm 17.
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/select/parse_utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/document/src/vespa/document/select/parse_utils.cpp b/document/src/vespa/document/select/parse_utils.cpp
index 4c116d5bff4..d1e559f211d 100644
--- a/document/src/vespa/document/select/parse_utils.cpp
+++ b/document/src/vespa/document/select/parse_utils.cpp
@@ -24,7 +24,7 @@ parse_i64(const char* str, size_t len, int64_t& out) {
}
bool
parse_double(const char* str, size_t len, double& out) {
-#if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 170000
+#if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 180000
// Temporary workaround that also handles underflow (cf. issue 3081)
// until libc++ supports std::from_chars for double
char *str_end = const_cast<char*>(str) + len;