3 ms·
You cannot overload on the const. If you try to define both int a(int b) and int a(const int b) the compiler will complain about a redefinition. You can declar
by pontobart 10y ago
You cannot overload on the const. If you try to define both int a(int b) and int a(const int b) the compiler will complain about a redefinition.
You can declare the function using int a(int b) in the header and then define it via int a(const int b).