From 36cd5101198e0d05407982ce05e20ca854d12435 Mon Sep 17 00:00:00 2001 From: nicole mazzuca Date: Fri, 8 Jan 2021 10:46:54 -0800 Subject: [vcpkg] Fix build for mingw (#15504) * fix build * stop the templateness none of the major three implementations have string::const_iterator = char const* --- toolsrc/src/vcpkg/base/files.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'toolsrc/src') diff --git a/toolsrc/src/vcpkg/base/files.cpp b/toolsrc/src/vcpkg/base/files.cpp index ce68741d5..afd30bf85 100644 --- a/toolsrc/src/vcpkg/base/files.cpp +++ b/toolsrc/src/vcpkg/base/files.cpp @@ -104,6 +104,11 @@ namespace fs::path fs::u8path(vcpkg::StringView s) { + if (s.size() == 0) + { + return fs::path(); + } + #if defined(_WIN32) return fs::path(vcpkg::Strings::to_utf16(s)); #else -- cgit v1.2.3