🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Joseph Heled Wed, 20 Mar 1996 04:46
type_info::name
#3747
Author: Joseph Heled
Date: Wed, 20 Mar 1996 04:46
17 lines
1217 bytes
Can someone comment if the standard will say more about
type_info::name(), specifically,

 0. for all T, typeid(T).name() != 0

 1. T1 != T2  ==> ! strcmp(typeid(T1).name, typeid(T2).name())

 2. strcmp(typeid(int()).name(), "int") == 0
       (etc for all builtin types)

-pepe
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
Re: type_info: :name
#3749
Author: Steve Willer
Date: Wed, 20 Mar 1996 16:29
17 lines
1147 bytes
Joseph Heled <joseph@itginc.com> wrote:

> 0. for all T, typeid(T).name() != 0

and also not ""?

> 1. T1 != T2  ==> ! strcmp(typeid(T1).name, typeid(T2).name())

Presumably you meant "==> strcmp(..." (i.e. without the "not")?



[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads