I am impressed by this forum

Pages: 12
Velnias75 (27)
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 "};" ;-)
maeriden (339)
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
Registered users can post here. Sign in or register to post.
Pages: 12