File tree 1 file changed +1
-13
lines changed
1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -41,16 +41,6 @@ namespace detail {
41
41
# define FMT_COMPILE (s ) FMT_STRING(s)
42
42
#endif
43
43
44
- #if FMT_USE_NONTYPE_TEMPLATE_ARGS
45
- template <typename Char, size_t N, fmt::detail::fixed_string<Char, N> Str>
46
- struct udl_compiled_string : compiled_string {
47
- using char_type = Char;
48
- constexpr explicit operator basic_string_view<char_type>() const {
49
- return {Str.data , N - 1 };
50
- }
51
- };
52
- #endif
53
-
54
44
template <typename T, typename ... Tail>
55
45
auto first (const T& value, const Tail&...) -> const T& {
56
46
return value;
@@ -538,9 +528,7 @@ void print(const S& fmt, const Args&... args) {
538
528
#if FMT_USE_NONTYPE_TEMPLATE_ARGS
539
529
inline namespace literals {
540
530
template <detail::fixed_string Str> constexpr auto operator " " _cf() {
541
- using char_t = remove_cvref_t <decltype (Str.data [0 ])>;
542
- return detail::udl_compiled_string<char_t , sizeof (Str.data ) / sizeof (char_t ),
543
- Str>();
531
+ return FMT_COMPILE (Str.data );
544
532
}
545
533
} // namespace literals
546
534
#endif
You can’t perform that action at this time.
0 commit comments