diff --git a/include/date/date.h b/include/date/date.h index 7f83b86..1bad46d 100644 --- a/include/date/date.h +++ b/include/date/date.h @@ -7431,6 +7431,7 @@ msl(CharT c) NOEXCEPT } CONSTCD14 +inline std::size_t to_string_len(std::intmax_t i) { diff --git a/src/tz.cpp b/src/tz.cpp index 5f44adb..fec0a17 100644 --- a/src/tz.cpp +++ b/src/tz.cpp @@ -508,7 +508,7 @@ load_timezone_mappings_from_xml_file(const std::string& input_path) throw std::runtime_error(msg); }; // [optional space]a="b" - auto read_attribute = [&line_num, &line, &error] + auto read_attribute = [&line, &error] (const char* name, std::string& value, std::size_t startPos) ->std::size_t { @@ -2434,7 +2434,7 @@ time_zone::get_info_impl(sys_seconds tp, int tz_int) const using namespace date; tz timezone = static_cast(tz_int); assert(timezone != tz::standard); - auto y = year_month_day(floor(tp)).year(); + auto y = year_month_day(date::floor(tp)).year(); if (y < min_year || y > max_year) throw std::runtime_error("The year " + std::to_string(static_cast(y)) + " is out of range:[" + std::to_string(static_cast(min_year)) + ", "