Y
yinglcs
Hi,
In my .h file, I declare this:
class A{
public:
void f1 (const B* bPtr);
};
But In my .cpp, I do this:
void A::f1(B* bPtr) {
//....
}
My question is I miss 'const' in my implementation (.cpp), why the
code still compile?
In my .h file, I declare this:
class A{
public:
void f1 (const B* bPtr);
};
But In my .cpp, I do this:
void A::f1(B* bPtr) {
//....
}
My question is I miss 'const' in my implementation (.cpp), why the
code still compile?