got rid of std::invoke to avoid C++17 dependence

This commit is contained in:
2025-06-01 15:40:44 -04:00
parent 178bd616f5
commit 9321846172
20 changed files with 12 additions and 8 deletions

View File

@ -18,12 +18,16 @@ template<typename callable, typename ... argst> int threaded_execute(callable &&
{
nthreads = 1;
I = 0;
std::invoke(
std::forward<callable>(fptr),
I,
nthreads,
std::forward<argst>(args)...
);
// std::invoke(
// std::forward<callable>(fptr),
// I,
// nthreads,
// std::forward<argst>(args)...
// );
//std::invoke is a C++17 feature, and mingw8 complains even so.
// Can I get away with just calling the functions?
fptr(I,nthreads,std::forward<argst>(args)...);
}
else
{