
On Thu, 22 Apr 2004 10:03:00 -0400 "Arkadiy Vertleyb" <vertleyb@hotmail.com> wrote:
Integral constant. Each class/template can be assigned a unique integer constant, so that the whole class (template tree) can be encoded into an mpl::vector_c (or similar), to be later decoded into the original type. Everything is done at compile time (as you would expect with typeof).
As I thought. I apologize in advance for being thick, but I still do not see how you can solve your problem with an integral constant that changes between compilation units. As I understnad, even Paul's COUNTER gets reset for each compilation unit so there is no guarantee that you will get the same value across compilation units, and this could cause problems between object modules and libraries.