From 1698d15f7d215d6453af6a20d50626e0b04d7d07 Mon Sep 17 00:00:00 2001 From: mjk Date: Sat, 20 Mar 2021 21:29:37 +0000 Subject: [PATCH] silence enum stringification warnings by first casting to underlying types --- plugins/windows-notification/api/include/ginvoke.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/windows-notification/api/include/ginvoke.hpp b/plugins/windows-notification/api/include/ginvoke.hpp index 3cc20487..9d0b53ab 100644 --- a/plugins/windows-notification/api/include/ginvoke.hpp +++ b/plugins/windows-notification/api/include/ginvoke.hpp @@ -55,8 +55,11 @@ namespace impl std::optional get_if_hresult_error(std::exception_ptr) noexcept; } -template +template,int> = 0> inline auto &describe_argument(OStream &s, const T &a) { return s << a; } +template,int> = 0> +inline auto &describe_argument(OStream &s, const T &a) { return s << static_cast>(a); } + template inline auto &describe_argument(OStream &s, std::string_view const a) { return s << std::quoted(a); } template