|
From: | Thomas Maeder |
Subject: | Re: Obtaining the name of the C++ class from the pointer |
Date: | Mon, 01 May 2006 22:20:21 +0200 |
User-agent: | Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux) |
sheikashrub@gmail.com writes: > Thanks. I tried this and I seem to get a number infront of the > class name that is printed. Is this expected? The result of typeid(*ptr).name() is implementation defined. The only thing you can rely on is that it's a null-terminated string.
[Prev in Thread] | Current Thread | [Next in Thread] |