I am impressed by this forum

Pages: 12
closed account (D4S8vCM9)
It seems everybody has its own style:

Before the first public (in class) I declare (but not implement) copy constructor and assignment op. So it gets obvious if you really need them and you can easily avoid side effects. I even have a macro for it.

Next comes the constructor and methods sections ordered that way: public, protected, private
Constructors and destructor always on top of these sections, than the same order for member variables with static variables at last.

After I close it with "};" ;-)
Next comes the constructor and methods sections ordered that way: public, protected, private
Constructors and destructor always on top of these sections, than the same order for member variables with static variables at last.

Same, except I put statics before anything.
Last edited on
Topic archived. No new replies allowed.
Pages: 12