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