Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #15473
| From | Nobody <nobody@nowhere.com> |
|---|---|
| Subject | Re: super superclass |
| Date | 2012-04-19 18:40 +0100 |
| Message-Id | <pan.2012.04.19.17.40.30.304000@nowhere.com> |
| Newsgroups | comp.lang.c++ |
| References | <23059116.431.1334670603001.JavaMail.geo-discussion-forums@ynku11> <4F8F2C5E.6020904@somewhere.net> <slrnjouepj.1ls.grahn+nntp@frailea.sa.invalid> |
| Organization | Zen Internet |
On Wed, 18 Apr 2012 22:07:47 +0000, Jorgen Grahn wrote: >> For example, do all classes really need a ToString() method? Surely, >> there are going to be some classes where a string representation either >> makes no sense or has little value. > > Unfortunate example, since the standard way to do this in C++ is to > provide a ostream << Foo overload. No common superclass needed. But that will dispatch according to the static (compile-time) type, not the dynamic (run-time) type.
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
super superclass bob@coolfone.comze.com - 2012-04-17 06:50 -0700
Re: super superclass Marc <marc.glisse@gmail.com> - 2012-04-17 14:29 +0000
Re: super superclass Christopher Pisz <someone@somewhere.net> - 2012-04-18 16:04 -0500
Re: super superclass Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-04-18 22:07 +0000
Re: super superclass Nobody <nobody@nowhere.com> - 2012-04-19 18:40 +0100
Re: super superclass Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-04-20 07:56 +0000
Re: super superclass Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2012-04-20 00:29 -0400
csiph-web