When you have a class described in the format shown below, the indentation is completely wrong.
The area in which .... is written has wrong indentation done.
Logged In: YES user_id=798888
I always just put the colon before the member initialisers on a new line -- seems to keep FTE happy and looks reasonably organised.
e.g.:
<pre> class A : public C { public: A() : C(), foo(), bar() {
} }; </pre>
(why do I feel as though my <pre> tags will just get eaten...)
Log in to post a comment.
Logged In: YES
user_id=798888
I always just put the colon before the member initialisers
on a new line -- seems to keep FTE happy and looks
reasonably organised.
e.g.:
<pre>
class A : public C {
public:
A()
:
C(), foo(), bar() {
}
};
</pre>
(why do I feel as though my <pre> tags will just get eaten...)