[wpiutil] json: Fix map iterator key() for std::string_view (#3645)

This commit is contained in:
Peter Johnson
2021-10-20 08:45:16 -07:00
committed by GitHub
parent 138cbb94b2
commit 2b3a9a52b3

View File

@@ -2122,7 +2122,7 @@ template<typename IteratorType> 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: