From 3ccf503d3eef19dbe47e235e619c43a9d35d4d11 Mon Sep 17 00:00:00 2001 From: Malcolm Tyrrell Date: Wed, 19 Aug 2020 11:31:32 +0100 Subject: [PATCH] Forward template arguments. --- include/assimp/Exceptional.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/assimp/Exceptional.h b/include/assimp/Exceptional.h index 2e02b72e6..139201085 100644 --- a/include/assimp/Exceptional.h +++ b/include/assimp/Exceptional.h @@ -65,7 +65,7 @@ protected: template explicit DeadlyErrorBase(Assimp::Formatter::format f, U&& u, T&&... args) - : DeadlyErrorBase(std::move(f << u), args...) + : DeadlyErrorBase(std::move(f << std::forward(u)), std::forward(args)...) { } }; @@ -79,7 +79,7 @@ public: /** Constructor with arguments */ template explicit DeadlyImportError(T&&... args) - : DeadlyErrorBase(Assimp::Formatter::format(), args...) + : DeadlyErrorBase(Assimp::Formatter::format(), std::forward(args)...) { } }; @@ -89,7 +89,7 @@ public: /** Constructor with arguments */ template explicit DeadlyExportError(T&&... args) - : DeadlyErrorBase(Assimp::Formatter::format(), args...) + : DeadlyErrorBase(Assimp::Formatter::format(), std::forward(args)...) { } };