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));