For those of you who name you member variables with no special notation like m_foo or foo_, how do you name parameters to your ctors and setters?>
I'm going with
Obj(int foo) : mFoo(foo) { }
void setFoo(int foo) { mFoo = foo; }
in my programs. For copy constructors and operator=, i tend to call it
Obj(Obj const& that):mFoo(that.mFoo) { }
For operators, i'm going with
Obj operator+(Obj const& lhs, Obj const& rhs) { ... }
Because those are the left hand side and the right hand side of it.