Work around VS-2015 bug

This commit is contained in:
Howard Hinnant 2017-01-24 15:35:28 -05:00
parent 186dbb2891
commit 2b8e6562ae

2
date.h
View File

@ -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
{ {