From f5f4d76936150b1d58977e8a23996ce8b75c7803 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Sun, 10 Jun 2018 15:44:43 -0400 Subject: [PATCH] Replace save_stream with save_ostream * In islamic.h and julian.h --- include/date/islamic.h | 6 +++--- include/date/julian.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/date/islamic.h b/include/date/islamic.h index b18c493..34c3e06 100644 --- a/include/date/islamic.h +++ b/include/date/islamic.h @@ -866,7 +866,7 @@ inline std::basic_ostream& operator<<(std::basic_ostream& os, const day& d) { - date::detail::save_stream _(os); + date::detail::save_ostream _(os); os.fill('0'); os.flags(std::ios::dec | std::ios::right); os.width(2); @@ -1177,7 +1177,7 @@ inline std::basic_ostream& operator<<(std::basic_ostream& os, const year& y) { - date::detail::save_stream _(os); + date::detail::save_ostream _(os); os.fill('0'); os.flags(std::ios::dec | std::ios::internal); os.width(4 + (y < year{0})); @@ -2236,7 +2236,7 @@ inline std::basic_ostream& operator<<(std::basic_ostream& os, const year_month_day& ymd) { - date::detail::save_stream _(os); + date::detail::save_ostream _(os); os.fill('0'); os.flags(std::ios::dec | std::ios::right); os << ymd.year() << '-'; diff --git a/include/date/julian.h b/include/date/julian.h index 4aac963..cc2d1b0 100644 --- a/include/date/julian.h +++ b/include/date/julian.h @@ -879,7 +879,7 @@ inline std::basic_ostream& operator<<(std::basic_ostream& os, const day& d) { - date::detail::save_stream _(os); + date::detail::save_ostream _(os); os.fill('0'); os.flags(std::ios::dec | std::ios::right); os.width(2); @@ -1171,7 +1171,7 @@ inline std::basic_ostream& operator<<(std::basic_ostream& os, const year& y) { - date::detail::save_stream _(os); + date::detail::save_ostream _(os); os.fill('0'); os.flags(std::ios::dec | std::ios::internal); os.width(4 + (y < year{0})); @@ -2250,7 +2250,7 @@ inline std::basic_ostream& operator<<(std::basic_ostream& os, const year_month_day& ymd) { - date::detail::save_stream _(os); + date::detail::save_ostream _(os); os.fill('0'); os.flags(std::ios::dec | std::ios::right); os << ymd.year() << '-';