Monday, 2 September 2013

c++ should I use const to method of parameter value type?

c++ should I use const to method of parameter value type?

I have for example this:
void SetWidth(double width);
Should it be:
void SetWidth(const double width);

No comments:

Post a Comment