Boost logo

Boost :

From: Jody Hagins (jody-boost-011304_at_[hidden])
Date: 2004-04-22 11:45:20

On Thu, 22 Apr 2004 10:03:00 -0400
"Arkadiy Vertleyb" <vertleyb_at_[hidden]> 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.

Boost list run by bdawes at, gregod at, cpdaniel at, john at