assert(typeid(void function(int)) == typeid(void function(long)));

おいィ?