From 2b3a9a52b35966011f3dce09e5684cde58d6791c Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Wed, 20 Oct 2021 08:45:16 -0700 Subject: [PATCH] [wpiutil] json: Fix map iterator key() for std::string_view (#3645) --- wpiutil/src/main/native/include/wpi/json.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpiutil/src/main/native/include/wpi/json.h b/wpiutil/src/main/native/include/wpi/json.h index 9094ec6ada..0197cd61a3 100644 --- a/wpiutil/src/main/native/include/wpi/json.h +++ b/wpiutil/src/main/native/include/wpi/json.h @@ -2122,7 +2122,7 @@ template class iteration_proxy // use key from the object case value_t::object: - return anchor.key(); + return std::string{anchor.key()}; // use an empty key for all primitive types default: