You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE REQUEST] Detect which overload is stored in multiple signature function #73
Currently my callback type is templated so i can use something like:
template<class F>
void processing(F clb)
{
int decision = 0;
double some_stat = 0;
double some_other_stat = 0;
if constexpr(std::is_invocable_v<F, int>)
clb(decision);
else if constexpr(std::is_invocable_v<F,int,double,double>
clb(decision,some_stat,some_other_stat);
}
I quite would like to move my processing() function from the header to the .cpp file which requires some kind of type erasure which this library seems to provide. However i need to sort out this issue.
Activity