I want a template function('Convert') to convert a lambda to a function.
auto f1 = Convert([](){});//f1 type is std::function<void()>;
auto f2 = Convert([](int){});//f2 type is std::function<void(int)>;
auto f3 = Convert([](int&){});//f3 type is std::function<void(int&)>;
I am not a full-time employee of any organisation; I work part-time on C++ projects that arouse my interest (though my association with some of these projects have been on-going for several years).