From aa767596d9a1324d2832591ba7adb32a48d0ac30 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Wed, 15 May 2019 10:49:24 -0400 Subject: [PATCH] Updated Boost datetime Examples Translated (markdown) --- Boost-datetime-Examples-Translated.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Boost-datetime-Examples-Translated.md b/Boost-datetime-Examples-Translated.md index 7066b55..69dddd8 100644 --- a/Boost-datetime-Examples-Translated.md +++ b/Boost-datetime-Examples-Translated.md @@ -28,7 +28,7 @@ look if ported to this library. ### Dates as String ```c++ -#include "date.h" +#include "date/date.h" #include #include #include @@ -59,8 +59,9 @@ main() // Let's send in month 25 by accident and create an exception in.str("20012509"); // 2001-??-09 + in.clear(); in.exceptions(std::ios::failbit); - cout << "An expected exception is next:\n"; + cout << "An expected exception is next:" << endl; in >> parse("%Y%m%d", d); cout << "oh oh, you shouldn't reach this line:\n"; }