I defined a function:
void myfunc(size_t param1, size_t param2){
...
}
it works fine. But when I try to overload this function
void myfunc(unsigned long param1, unsigned long param2){
...
}
It fails to compile with the following message: error: myfunc(unsigned long param1, unsigned long param2) cannot be overloaded.
How can I solve this problem without staic_cast the input parameters to size_t?
thanks!