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)...)}; } }