fix: ctor of time and null

This commit is contained in:
ToruNiina 2024-07-27 18:27:16 +09:00
parent c433577120
commit da98b6558d

View File

@ -752,8 +752,8 @@ class basic_value
key_format_info key_fmt = key_format_info{}, key_format_info key_fmt = key_format_info{},
region_type reg = region_type{}, region_type reg = region_type{},
region_type key_reg = region_type{}) region_type key_reg = region_type{})
: basic_value(local_time_type(x), std::move(fmt), std::move(com), std::move(reg), : basic_value(local_time_type(x), std::move(fmt), std::move(com), std::move(key_fmt),
std::move(key_reg), std::move(key_fmt)) std::move(reg), std::move(key_reg))
{} {}
template<typename Rep, typename Period> template<typename Rep, typename Period>
basic_value& operator=(const std::chrono::duration<Rep, Period>& x) basic_value& operator=(const std::chrono::duration<Rep, Period>& x)
@ -1118,7 +1118,8 @@ class basic_value
// mainly for `null` extension // mainly for `null` extension
basic_value(detail::none_t, region_type reg) noexcept basic_value(detail::none_t, region_type reg) noexcept
: type_(value_t::empty), empty_('\0'), region_(std::move(reg)), comments_{} : type_(value_t::empty), empty_('\0'), region_(std::move(reg)), comments_{},
key_region_{}, key_fmt_{}
{} {}
// }}} // }}}