21 Feb
2012
21 Feb
'12
2:14 p.m.
Hi,
W dniu 21 lutego 2012 14:56 użytkownik Nat Linden
On Tue, Feb 21, 2012 at 7:32 AM, Szymon Gatner
wrote: I am coding a simple serialization/factory lib and want to use class hash code based on std::string representing class name as a factory identifier.
There's another potential "gotcha" lurking here: where are you getting the class-name string? Is that manually coded, or are you deriving it from typeid(myclass).name()? The latter construct is explicitly (and empirically) NOT portable.
Yup, I am aware of that, all names are manually typed strings. Tho, it would be very usefull imho if we could also have like typeid(MyClass).pretty_name() that would have standard format. Cheers, Simon