Is there any extra cost of calling non-virtual base methods in virtual inheritance?
问题 I had referred this question (I changed its title). I am aware that code generation related to virtual ness are implementation specific. However, earlier question suggests that, there is an additional cost related to virtual inheritance, when calling non-virtual base method. I wrote following test codes and checked its assembly in g++ (with -O4 ): Common part struct Base { int t_size; Base (int i) : t_size(i) {} virtual ~Base () {} int size () const { return t_size; }; }; struct D1 : virtual