From 53f6b8268b1ea760f08b962f2c2dd89c4ea637ec Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Wed, 13 Feb 2019 13:34:26 +0900 Subject: [PATCH] fix: compare offset_datetime correctly --- toml/value.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toml/value.hpp b/toml/value.hpp index 9088df8..4241f4e 100644 --- a/toml/value.hpp +++ b/toml/value.hpp @@ -767,6 +767,8 @@ inline bool operator<(const toml::value& lhs, const toml::value& rhs) return lhs.cast() < rhs.cast(); case value_t::String : return lhs.cast() < rhs.cast(); + case value_t::OffsetDatetime: + return lhs.cast() < rhs.cast(); case value_t::LocalDatetime: return lhs.cast() < rhs.cast(); case value_t::LocalDate: