Commit 395dd94c authored by Eike Ziller's avatar Eike Ziller
Browse files

Revert asConst for rvalue refs

The rvalue refs go out of scope too fast, that's why it must be disabled
(as it is for qAsConst).

This partially reverts commit 0316219f


Change-Id: Ie2a88400922f0275203a61e4070fe66f2a1fbc7b
Reviewed-by: default avatarhjk <>
parent 2b838692
......@@ -30,7 +30,7 @@
namespace Utils {
template <class T>
constexpr std::add_const_t<T> &asConst(T &&t) noexcept
constexpr std::add_const_t<T> &asConst(T &t) noexcept
return t;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment