Remove unneeded make_precision

This commit is contained in:
Howard Hinnant
2019-02-03 23:21:36 -05:00
parent 09a19a09f4
commit 5a62c405e0
3 changed files with 7 additions and 85 deletions
-15
View File
@@ -3694,21 +3694,6 @@ struct static_pow10<0>
static CONSTDATA std::uint64_t value = 1;
};
template <class Rep, unsigned w, bool in_range = (w < 19)>
struct make_precision
{
using type = std::chrono::duration<Rep,
std::ratio<1, static_pow10<w>::value>>;
static CONSTDATA unsigned width = w;
};
template <class Rep, unsigned w>
struct make_precision<Rep, w, false>
{
using type = std::chrono::duration<Rep, std::micro>;
static CONSTDATA unsigned width = 6;
};
template <class Duration>
class decimal_format_seconds
{