
21 Feb
2012
21 Feb
'12
1:56 p.m.
On Tue, Feb 21, 2012 at 7:32 AM, Szymon Gatner
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.