From bbb9388d3a367a87d495429a3b6a047a26101262 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Sat, 6 May 2017 18:43:55 +0900 Subject: [PATCH] add typedefs to basic_datetiem --- toml/datetime.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/toml/datetime.hpp b/toml/datetime.hpp index b5f0461..88bb821 100644 --- a/toml/datetime.hpp +++ b/toml/datetime.hpp @@ -11,6 +11,8 @@ namespace toml template struct basic_datetime { + typedef unsignedT number_type; + typedef intT offset_type; constexpr static unsignedT undef = std::numeric_limits::max(); constexpr static intT nooffset = std::numeric_limits::max(); @@ -37,7 +39,8 @@ struct basic_datetime millisecond(undef), microsecond(undef), offset_hour(nooffset), offset_minute(nooffset) {} - basic_datetime(unsignedT h, unsignedT m, unsignedT s, unsignedT ms, unsignedT us) + basic_datetime(unsignedT h, unsignedT m, unsignedT s, + unsignedT ms, unsignedT us) : year(undef), month(undef), day(undef), hour(h), minute(m), second(s), millisecond(ms), microsecond(us), offset_hour(nooffset), offset_minute(nooffset)