From 6691fc2b9fdf3bf3a56710547371f76c67d3636a Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Mon, 17 Apr 2017 12:48:16 -0400 Subject: [PATCH] Updated Examples and Recipes (markdown) --- Examples-and-Recipes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples-and-Recipes.md b/Examples-and-Recipes.md index 9da5601..f1af552 100644 --- a/Examples-and-Recipes.md +++ b/Examples-and-Recipes.md @@ -1591,7 +1591,7 @@ Once we have a string of form 2), give this sample code a try (thank you [Aaron] #include #include "tz.h" - void main() + int main() { using namespace std; using namespace date; @@ -1601,7 +1601,7 @@ Once we have a string of form 2), give this sample code a try (thank you [Aaron] // Using local_seconds would resolve in ambiguous date exception sys_seconds tp; string tz_name; - parse(inputStream, "%F %T %Ez %Z", tp, tz_name); + inputStream >> parse("%F %T %Ez %Z", tp, tz_name); // bool operator tells us whether stream was successfully parsed assert(bool(inputStream));