S
subramanian100in
why can't a static member function be declared as const ? We can
declare a non-static member function as const, to indicate that it
does not modify the non-mutable data members. In the same way, is
there a provision to indicate that a static member function does not
modify the static data members but only uses their values ?
Kindly explain.
Thanks
V.Subramanian
declare a non-static member function as const, to indicate that it
does not modify the non-mutable data members. In the same way, is
there a provision to indicate that a static member function does not
modify the static data members but only uses their values ?
Kindly explain.
Thanks
V.Subramanian