I was recently told (by a person of authority) not to use const qualifiers on anything that's not a reference or pointer. E.g.:
void SetX(const int _x);
In fact, I was pretty much told I was stupid for doing this when I asked why not. I'm not exactly what one would consider a noob to c++ since I've been using it professionally for about 5 years now, but I do learn new things every now and then. My understanding is that const is only used by the compiler (in this case g++) to flag for user errors and has no impact on the executable generated?
I've looked around but couldn't find anything one way or another. The only thing I can think of is saving 6 bytes on the git download. Anyone have anything better?






