N
nick
ex1.foo(Person p);
foo(const Person p);
ex2.foo(Person *p);
foo(const Person *p);
ex3.foo(Person p);
foo(Person p) const;
why the pairs in ex1 are treated as the same function.Invalid
overloading. but ex2 is ok?
what is the meaning is ex3(foo(Person p)const?
thanks!
foo(const Person p);
ex2.foo(Person *p);
foo(const Person *p);
ex3.foo(Person p);
foo(Person p) const;
why the pairs in ex1 are treated as the same function.Invalid
overloading. but ex2 is ok?
what is the meaning is ex3(foo(Person p)const?
thanks!