Boost logo

Boost Users :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2005-09-27 11:18:52


Arkadiy Vertleyb wrote:
> "Robert Ramey" <ramey_at_[hidden]> 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

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net