mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-26 07:53:16 +08:00
Work around VS-2015 bug
This commit is contained in:
parent
186dbb2891
commit
2b8e6562ae
2
date.h
2
date.h
@ -4782,7 +4782,7 @@ to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt,
|
|||||||
if (abbrev == nullptr)
|
if (abbrev == nullptr)
|
||||||
throw std::runtime_error("Can not format local_time with %Z");
|
throw std::runtime_error("Can not format local_time with %Z");
|
||||||
for (auto c : *abbrev)
|
for (auto c : *abbrev)
|
||||||
os << CharT{c};
|
os << CharT(c);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user