From afede571cb34df4a39386139ab7f439e62816965 Mon Sep 17 00:00:00 2001 From: pfeatherstone <45853521+pfeatherstone@users.noreply.github.com> Date: Sat, 30 Sep 2023 12:11:13 +0100 Subject: [PATCH] potential fix for gcc 5.1 onward (#2870) Co-authored-by: Your Name --- dlib/functional.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/functional.h b/dlib/functional.h index c79b37f20..9a91654d1 100644 --- a/dlib/functional.h +++ b/dlib/functional.h @@ -357,7 +357,7 @@ namespace dlib Args&&... args ) { - return binder_wrapper, std::decay_t...>{std::forward(func), std::forward(args)...}; + return binder_wrapper, std::decay_t...>{std::forward(func), std::make_tuple(std::forward(args)...)}; } }