forked from HowardHinnant/date
Suffix d for days duration (#354)
This commit is contained in:
committed by
Howard Hinnant
parent
2d282e35fa
commit
f46885e632
+9
-1
@@ -8225,7 +8225,6 @@ get_units(std::ratio<3600>)
|
||||
return string_literal<CharT, 2>{'h'};
|
||||
}
|
||||
|
||||
|
||||
template <class CharT>
|
||||
CONSTCD11
|
||||
inline
|
||||
@@ -8235,6 +8234,15 @@ get_units(std::ratio<60>)
|
||||
return string_literal<CharT, 4>{'m', 'i', 'n'};
|
||||
}
|
||||
|
||||
template <class CharT>
|
||||
CONSTCD11
|
||||
inline
|
||||
string_literal<CharT, 2>
|
||||
get_units(std::ratio<86400>)
|
||||
{
|
||||
return string_literal<CharT, 2>{'d'};
|
||||
}
|
||||
|
||||
template <class CharT, class Traits = std::char_traits<CharT>>
|
||||
struct make_string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user