From a778e6d76e331d827d4130d6c6fdee7c05b5b474 Mon Sep 17 00:00:00 2001 From: jnhyatt Date: Wed, 4 Mar 2020 04:54:15 -0700 Subject: [PATCH] Remove leading whitespace when first character is whitespace --- include/ghc/filesystem.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/ghc/filesystem.hpp b/include/ghc/filesystem.hpp index ba4302c..df0e845 100644 --- a/include/ghc/filesystem.hpp +++ b/include/ghc/filesystem.hpp @@ -2951,7 +2951,8 @@ template inline std::basic_istream& operator>>(std::basic_istream& is, path& p) { std::basic_string tmp; - auto c = is.get(); + charT c; + is >> c; if (c == '"') { auto sf = is.flags(); is >> std::noskipws;