Function parameters that are fundamental types passed by value and const
The rule is to not do this in the header file.
Some people say don't do it in the cpp file either (I am in that camp)
but this does seem to be a matter of opinion.
See the abseil article https://abseil.io/tips/109 for a discussion.
No comments:
Post a Comment