6 Jan
2005
6 Jan
'05
8:31 p.m.
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Sean Kelly
Hello All,
I'm trying to figure out if it is possible to use the preprocessor library to generate a unique token for a given translational unit suitable for use in a variable definition. __FILE__ doesn't work for obvious reasons.
Hi Sean. Unfortunately, there is no way to generate a unique symbol in different translation units. The best that you can do is something with __FILE__ (in the root file of the translation unit) at runtime. Regards, Paul Mensonides