aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-07-24 19:19:04 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-07-24 19:19:04 +0200
commitf340d73ae5dac0d0cfee732aabbd5222c7be16dd (patch)
tree297ad34bf54c0e38e7bb54fb268ae406dee7768f /lib
parente4bfe89b3b2fea57a7267abb7cf892e15f1deeb5 (diff)
downloadlibquotient-f340d73ae5dac0d0cfee732aabbd5222c7be16dd.tar.gz
libquotient-f340d73ae5dac0d0cfee732aabbd5222c7be16dd.zip
Make operator ""_ls constexpr
Diffstat (limited to 'lib')
-rw-r--r--lib/util.h2
1 files changed, 1 insertions, 1 deletions
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<FnT>::function_type(std::forward<FnT>(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));
}