From f340d73ae5dac0d0cfee732aabbd5222c7be16dd Mon Sep 17 00:00:00 2001 From: Alexey Rusakov Date: Sat, 24 Jul 2021 19:19:04 +0200 Subject: Make operator ""_ls constexpr --- lib/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/util.h') diff --git a/lib/util.h b/lib/util.h index cb0ff44a..7f09de28 100644 --- a/lib/util.h +++ b/lib/util.h @@ -196,7 +196,7 @@ inline auto wrap_in_function(FnT&& f) return typename function_traits::function_type(std::forward(f)); } -inline auto operator"" _ls(const char* s, std::size_t size) +inline constexpr auto operator"" _ls(const char* s, std::size_t size) { return QLatin1String(s, int(size)); } -- cgit v1.2.3