mirror of
https://github.com/ToruNiina/toml11.git
synced 2024-11-10 06:40:07 +00:00
add typedefs to basic_datetiem
This commit is contained in:
parent
864840d11c
commit
bbb9388d3a
@ -11,6 +11,8 @@ namespace toml
|
|||||||
template<typename unsignedT, typename intT>
|
template<typename unsignedT, typename intT>
|
||||||
struct basic_datetime
|
struct basic_datetime
|
||||||
{
|
{
|
||||||
|
typedef unsignedT number_type;
|
||||||
|
typedef intT offset_type;
|
||||||
constexpr static unsignedT undef = std::numeric_limits<unsignedT>::max();
|
constexpr static unsignedT undef = std::numeric_limits<unsignedT>::max();
|
||||||
constexpr static intT nooffset = std::numeric_limits<intT>::max();
|
constexpr static intT nooffset = std::numeric_limits<intT>::max();
|
||||||
|
|
||||||
@ -37,7 +39,8 @@ struct basic_datetime
|
|||||||
millisecond(undef), microsecond(undef),
|
millisecond(undef), microsecond(undef),
|
||||||
offset_hour(nooffset), offset_minute(nooffset)
|
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),
|
: year(undef), month(undef), day(undef), hour(h), minute(m), second(s),
|
||||||
millisecond(ms), microsecond(us),
|
millisecond(ms), microsecond(us),
|
||||||
offset_hour(nooffset), offset_minute(nooffset)
|
offset_hour(nooffset), offset_minute(nooffset)
|
||||||
|
Loading…
Reference in New Issue
Block a user