P
puzzlecracker
I seem to get an error for this kind of code; apparently c++ prohibits
default params for nonconst refs types.
what are my alternatives without having to declare it const and then
const_cast it?
thanks
#include<iostream>
class A{
};
class Bublic A{}
;
void f (A & a= A()){
}
int main(){
}
default params for nonconst refs types.
what are my alternatives without having to declare it const and then
const_cast it?
thanks
#include<iostream>
class A{
};
class Bublic A{}
;
void f (A & a= A()){
}
int main(){
}