Boost logo

Boost Users :

From: Paul Mensonides (pmenso57_at_[hidden])
Date: 2005-01-06 15:31:28


> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] 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


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