Suffix d for days duration (#354)

This commit is contained in:
tomaszkam
2018-06-20 11:39:48 -04:00
committed by Howard Hinnant
parent 2d282e35fa
commit f46885e632
2 changed files with 19 additions and 10 deletions
+9 -1
View File
@@ -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;