Boost logo

Boost :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2004-02-21 03:32:36


Jody Hagins wrote:
> This code is extremely simple, but it begs several questions, and I hope
> this forum is appropriate for discussion:
>
> 1. Is there something similar in boost already?

Nope.

> 2. Are nested anonymous namespaces portable across most common
> implementations?

Unknown, I think.

> 3. Does anyone know of a better way of doing this, especially overcoming
> the problem with having multiple declarations on the same line?

I don't think there is one.

> 4. Does anyone know of a way to create a unique object id constant that
> does not require something like using the address of a static variable
> -- this would require memory for each instance of the object id?
> 5. Any other comments about this snippet, or related issues?

Out of curiosity, what is (are) the motivating use case(s) for it?

--
Aleksey Gurtovoy
MetaCommunications Engineering

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk