potential fix for gcc 5.1 onward (#2870)

Co-authored-by: Your Name <you@example.com>
This commit is contained in:
pfeatherstone 2023-09-30 12:11:13 +01:00 committed by GitHub
parent 57b77a0e41
commit afede571cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -357,7 +357,7 @@ namespace dlib
Args&&... args
)
{
return binder_wrapper<Back, std::decay_t<F>, std::decay_t<Args>...>{std::forward<F>(func), std::forward<Args>(args)...};
return binder_wrapper<Back, std::decay_t<F>, std::decay_t<Args>...>{std::forward<F>(func), std::make_tuple(std::forward<Args>(args)...)};
}
}