mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-03 12:44:27 +02:00
Replace save_stream with save_ostream
* In islamic.h and julian.h
This commit is contained in:
@@ -866,7 +866,7 @@ inline
|
|||||||
std::basic_ostream<CharT, Traits>&
|
std::basic_ostream<CharT, Traits>&
|
||||||
operator<<(std::basic_ostream<CharT, Traits>& os, const day& d)
|
operator<<(std::basic_ostream<CharT, Traits>& os, const day& d)
|
||||||
{
|
{
|
||||||
date::detail::save_stream<CharT, Traits> _(os);
|
date::detail::save_ostream<CharT, Traits> _(os);
|
||||||
os.fill('0');
|
os.fill('0');
|
||||||
os.flags(std::ios::dec | std::ios::right);
|
os.flags(std::ios::dec | std::ios::right);
|
||||||
os.width(2);
|
os.width(2);
|
||||||
@@ -1177,7 +1177,7 @@ inline
|
|||||||
std::basic_ostream<CharT, Traits>&
|
std::basic_ostream<CharT, Traits>&
|
||||||
operator<<(std::basic_ostream<CharT, Traits>& os, const year& y)
|
operator<<(std::basic_ostream<CharT, Traits>& os, const year& y)
|
||||||
{
|
{
|
||||||
date::detail::save_stream<CharT, Traits> _(os);
|
date::detail::save_ostream<CharT, Traits> _(os);
|
||||||
os.fill('0');
|
os.fill('0');
|
||||||
os.flags(std::ios::dec | std::ios::internal);
|
os.flags(std::ios::dec | std::ios::internal);
|
||||||
os.width(4 + (y < year{0}));
|
os.width(4 + (y < year{0}));
|
||||||
@@ -2236,7 +2236,7 @@ inline
|
|||||||
std::basic_ostream<CharT, Traits>&
|
std::basic_ostream<CharT, Traits>&
|
||||||
operator<<(std::basic_ostream<CharT, Traits>& os, const year_month_day& ymd)
|
operator<<(std::basic_ostream<CharT, Traits>& os, const year_month_day& ymd)
|
||||||
{
|
{
|
||||||
date::detail::save_stream<CharT, Traits> _(os);
|
date::detail::save_ostream<CharT, Traits> _(os);
|
||||||
os.fill('0');
|
os.fill('0');
|
||||||
os.flags(std::ios::dec | std::ios::right);
|
os.flags(std::ios::dec | std::ios::right);
|
||||||
os << ymd.year() << '-';
|
os << ymd.year() << '-';
|
||||||
|
@@ -879,7 +879,7 @@ inline
|
|||||||
std::basic_ostream<CharT, Traits>&
|
std::basic_ostream<CharT, Traits>&
|
||||||
operator<<(std::basic_ostream<CharT, Traits>& os, const day& d)
|
operator<<(std::basic_ostream<CharT, Traits>& os, const day& d)
|
||||||
{
|
{
|
||||||
date::detail::save_stream<CharT, Traits> _(os);
|
date::detail::save_ostream<CharT, Traits> _(os);
|
||||||
os.fill('0');
|
os.fill('0');
|
||||||
os.flags(std::ios::dec | std::ios::right);
|
os.flags(std::ios::dec | std::ios::right);
|
||||||
os.width(2);
|
os.width(2);
|
||||||
@@ -1171,7 +1171,7 @@ inline
|
|||||||
std::basic_ostream<CharT, Traits>&
|
std::basic_ostream<CharT, Traits>&
|
||||||
operator<<(std::basic_ostream<CharT, Traits>& os, const year& y)
|
operator<<(std::basic_ostream<CharT, Traits>& os, const year& y)
|
||||||
{
|
{
|
||||||
date::detail::save_stream<CharT, Traits> _(os);
|
date::detail::save_ostream<CharT, Traits> _(os);
|
||||||
os.fill('0');
|
os.fill('0');
|
||||||
os.flags(std::ios::dec | std::ios::internal);
|
os.flags(std::ios::dec | std::ios::internal);
|
||||||
os.width(4 + (y < year{0}));
|
os.width(4 + (y < year{0}));
|
||||||
@@ -2250,7 +2250,7 @@ inline
|
|||||||
std::basic_ostream<CharT, Traits>&
|
std::basic_ostream<CharT, Traits>&
|
||||||
operator<<(std::basic_ostream<CharT, Traits>& os, const year_month_day& ymd)
|
operator<<(std::basic_ostream<CharT, Traits>& os, const year_month_day& ymd)
|
||||||
{
|
{
|
||||||
date::detail::save_stream<CharT, Traits> _(os);
|
date::detail::save_ostream<CharT, Traits> _(os);
|
||||||
os.fill('0');
|
os.fill('0');
|
||||||
os.flags(std::ios::dec | std::ios::right);
|
os.flags(std::ios::dec | std::ios::right);
|
||||||
os << ymd.year() << '-';
|
os << ymd.year() << '-';
|
||||||
|
Reference in New Issue
Block a user