Could you ensure me, if all access specifiers (including inheritance) in struct are public ?
In other words: are those equal?
class C: public B, public A { public:
C():A(1),B(2){}
//...
};
and
struct C: B, A {
C():A(1),B(2){}
//...
};
From C++ standard, 11.2.2, page 208:
So yes, you are correct: when the derived class is a
struct, it inherits other classes aspublicunless you specify otherwise.