Commit 674ee9d1 authored by Max Kellermann's avatar Max Kellermann

util/Exception: forward the exception in ThrowException()

Fixes -Wreturn-std-move (clang 8).
parent 3344953d
......@@ -46,7 +46,7 @@ gcc_noreturn
inline void
ThrowException(T &&t)
{
throw t;
throw std::forward<T>(t);
}
gcc_noreturn
......
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