Merge pull request #53 from jnhyatt/leading-whitespace

Bugfix - Leading Whitespace On Stream In
This commit is contained in:
gulrak 2020-03-04 08:26:26 +01:00 committed by GitHub
commit bd30737e81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2951,7 +2951,8 @@ template <class charT, class traits>
inline std::basic_istream<charT, traits>& operator>>(std::basic_istream<charT, traits>& is, path& p) inline std::basic_istream<charT, traits>& operator>>(std::basic_istream<charT, traits>& is, path& p)
{ {
std::basic_string<charT, traits> tmp; std::basic_string<charT, traits> tmp;
auto c = is.get(); charT c;
is >> c;
if (c == '"') { if (c == '"') {
auto sf = is.flags(); auto sf = is.flags();
is >> std::noskipws; is >> std::noskipws;