by Arnt · 9y ago · 0 comments
Ff a function takes a struct (or class) as argument can calls otherfunction(foo.bar), then the constness of foo's bar field matters. The same might apply to fields of this.
You can declare the function using int a(int b) in the header and then define it via int a(const int b).