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