I want to set my function with class object parameter set as default. But when I try to do that it fails in compilation.
class base {
 // ...
};
int myfunc(int a, base b = NULL) {
    if (NULL = b) {
        // DO SOMETHING
    } else {
    // DO SOMETHING
    }
}
Here when i am trying to compile it, this gives me error that "Default Argument base b have int type"
 
     
     
     
    