util/Exception: forward the exception in ThrowException()
Fixes -Wreturn-std-move (clang 8).
This commit is contained in:
parent
3344953db8
commit
674ee9d19a
@ -46,7 +46,7 @@ gcc_noreturn
|
||||
inline void
|
||||
ThrowException(T &&t)
|
||||
{
|
||||
throw t;
|
||||
throw std::forward<T>(t);
|
||||
}
|
||||
|
||||
gcc_noreturn
|
||||
|
Loading…
Reference in New Issue
Block a user