diff --git a/include/fmt/compile.h b/include/fmt/compile.h index dccd6fde..8ce043f6 100644 --- a/include/fmt/compile.h +++ b/include/fmt/compile.h @@ -129,7 +129,7 @@ template Str> struct udl_compiled_string : compiled_string { using char_type = Char; - constexpr operator basic_string_view() const { + explicit constexpr operator basic_string_view() const { return {Str.data, N - 1}; } };