Arkadiy Vertleyb wrote:
"Robert Ramey"
wrote Much fame and fortune will accrue to he who creates the function
template<typename T> char * guid()
which returns a unique char string in a platform independent way.
Might be done pretty easily on top of typeof emulation. Of course, custom type/template registration would be required.
I don't see how typeof helps? One, not exactly platform independent, way is to have a per platform translation of typeid(T).name() to a portable description. And by "unique char string" I hope Robert meant the string contents are unique, not that it would return the same pointer in all contexts. -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - Grafik/jabber.org