Reuse detail::string_literal in the chrono formatter

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
This commit is contained in:
Vladislav Shchapov
2022-07-30 11:25:10 +05:00
committed by Victor Zverovich
parent 6c9304b2c2
commit 36a25d75b4
3 changed files with 15 additions and 22 deletions

View File

@@ -309,16 +309,6 @@ OutputIt write_range_entry(OutputIt out, const Arg& v) {
return write<Char>(out, v);
}
template <typename CharT, CharT... C> struct string_literal {
static constexpr CharT value[sizeof...(C)] = {C...};
constexpr operator basic_string_view<CharT>() const {
return {value, sizeof...(C)};
}
};
template <typename CharT, CharT... C>
constexpr CharT string_literal<CharT, C...>::value[sizeof...(C)];
} // namespace detail
template <typename T> struct is_tuple_like {