Adjust HAS_CHRONO_ROUNDING macro for MSVC with v140_clang_c2 and LLVM-vs2014

This commit is contained in:
Tullio Menga
2017-11-20 11:45:04 -05:00
committed by Howard Hinnant
parent bd51baf31e
commit f4b12ab023
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2465,7 +2465,7 @@ time_zone::get_info_impl(sys_seconds tp, int tz_int) const
using namespace date;
tz timezone = static_cast<tz>(tz_int);
assert(timezone != tz::standard);
auto y = year_month_day(date::floor<days>(tp)).year();
auto y = year_month_day(floor<days>(tp)).year();
if (y < min_year || y > max_year)
throw std::runtime_error("The year " + std::to_string(static_cast<int>(y)) +
" is out of range:[" + std::to_string(static_cast<int>(min_year)) + ", "