// // lambda_cast.h // tax-calculator // // Created by Sam Jaffe on 10/8/20. // // Credit given to Nikos Athanasiou for this solution to the // problem of getting the argument types of a lambda. // https://stackoverflow.com/questions/13358672/ // #pragma once #include namespace lambdas { template struct memfun_type { using type = void; }; template struct memfun_type { using type = std::function; }; template typename memfun_type::type FFL(F const & func) { return func; } }