🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #3747

type_info::name

#3747
From: 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                             ]
Technical Details
Message-ID: <314F2C64.167EB0E7@itginc.com>
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back

Show Full Headers
Complete Article Headers
From: Joseph Heled <joseph@itginc.com>
Message-ID: <314F2C64.167EB0E7@itginc.com>
X-Original-Date: Tue, 19 Mar 1996 13:51:32 -0800
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back
Date: 20 Mar 96 04:46:06 GMT
Approved: fjh@cs.mu.oz.au
Newsgroups: comp.std.c++
Organization: ITG inc
X-Mailer: Mozilla 2.0 (X11; I; SunOS 4.1.3 sun4m)
Cc: joseph@itginc.com
Subject: type_info::name
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBFAgUBMU+Ns+EDnX0m9pzZAQHBjQGAjTkOL2wUgKI7XsNyGU1BB9O+BCLcBGtD
 WlEfx8SvcF7S+h5BdDcumMqwo4ezKqNL
 =P00z