From f57432d7b4d18ddca6ddef713a0d7c2d81310fed Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Thu, 4 May 2017 14:47:28 -0400 Subject: [PATCH] Don't skip white space by default in from_stream. * Put a space at the beginning of your format string to recover this behavior. --- date.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/date.h b/date.h index 8c710e3..fd4ee7f 100644 --- a/date.h +++ b/date.h @@ -5448,7 +5448,7 @@ from_stream(std::basic_istream& is, const CharT* fmt, { using namespace std; using namespace std::chrono; - typename basic_istream::sentry ok{is}; + typename basic_istream::sentry ok{is, true}; if (ok) { auto& f = use_facet>(is.getloc());