Forward template arguments.

pull/3375/head
Malcolm Tyrrell 2020-08-19 11:31:32 +01:00
parent 0f6127e90e
commit 3ccf503d3e
1 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ protected:
template<typename... T, typename U> template<typename... T, typename U>
explicit DeadlyErrorBase(Assimp::Formatter::format f, U&& u, T&&... args) explicit DeadlyErrorBase(Assimp::Formatter::format f, U&& u, T&&... args)
: DeadlyErrorBase(std::move(f << u), args...) : DeadlyErrorBase(std::move(f << std::forward<U>(u)), std::forward<T>(args)...)
{ {
} }
}; };
@ -79,7 +79,7 @@ public:
/** Constructor with arguments */ /** Constructor with arguments */
template<typename... T> template<typename... T>
explicit DeadlyImportError(T&&... args) explicit DeadlyImportError(T&&... args)
: DeadlyErrorBase(Assimp::Formatter::format(), args...) : DeadlyErrorBase(Assimp::Formatter::format(), std::forward<T>(args)...)
{ {
} }
}; };
@ -89,7 +89,7 @@ public:
/** Constructor with arguments */ /** Constructor with arguments */
template<typename... T> template<typename... T>
explicit DeadlyExportError(T&&... args) explicit DeadlyExportError(T&&... args)
: DeadlyErrorBase(Assimp::Formatter::format(), args...) : DeadlyErrorBase(Assimp::Formatter::format(), std::forward<T>(args)...)
{ {
} }
}; };