Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #19050
| From | Nobody <nobody@nowhere.com> |
|---|---|
| Subject | Re: Non virtual and inheritance |
| Date | 2012-10-18 13:29 +0100 |
| Message-Id | <pan.2012.10.18.12.29.32.390000@nowhere.com> |
| Newsgroups | comp.lang.c++ |
| References | <k5oqnl$slk$1@speranza.aioe.org> |
| Organization | Zen Internet |
On Thu, 18 Oct 2012 13:55:35 +0200, Sensei wrote: > Why is a member function non-virtual by default, even from an historically > accurate point of view? Virtual calls are more computationally expensive, and the presence of any virtual methods make the class a non-POD type. Virtual calls are pointless if the class isn't intended to be derived from (as most STL containers aren't).
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Non virtual and inheritance Sensei <sensei_s_mail_is_at@me.com> - 2012-10-18 13:55 +0200
Re: Non virtual and inheritance Nobody <nobody@nowhere.com> - 2012-10-18 13:29 +0100
Re: Non virtual and inheritance Juha Nieminen <nospam@thanks.invalid> - 2012-10-19 09:39 +0000
Re: Non virtual and inheritance Nobody <nobody@nowhere.com> - 2012-10-19 15:01 +0100
Re: Non virtual and inheritance Juha Nieminen <nospam@thanks.invalid> - 2012-10-19 16:01 +0000
Re: Non virtual and inheritance Rui Maciel <rui.maciel@gmail.com> - 2012-10-18 14:49 +0100
Re: Non virtual and inheritance Luca Risolia <luca.risolia@studio.unibo.it> - 2012-10-18 20:06 +0200
Re: Non virtual and inheritance Paavo Helde <myfirstname@osa.pri.ee> - 2012-10-18 14:40 -0500
Re: Non virtual and inheritance Juha Nieminen <nospam@thanks.invalid> - 2012-10-19 09:41 +0000
csiph-web