From e2ba01fcb0e9ef69adc2af39e3851386b64b4a4f Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 5 Feb 2022 08:35:19 -0800 Subject: [PATCH] Fix overload ambiguity in print --- include/fmt/compile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}; } };