Boost logo

Boost :

From: Arkadiy Vertleyb (vertleyb_at_[hidden])
Date: 2004-07-22 15:17:59


"David Abrahams" <dave_at_[hidden]> wrote

> "Arkadiy Vertleyb" <vertleyb_at_[hidden]> writes:
>
> > I guess my point is that I would like to prove that ODR is not important
in
> > this case, but I don't have enough knowledge of compilers to do it with
> > reasonable accuracy :(
>
> Here's my data point: so far the ODR problem with Boost.Bind
> placeholders has never caused any complaints.

If we decided to go with automatic registration, would you suggest putting
the registration templates inside the anonimous namespace?

By the way, Daniel James suggested an idea which I didn't like first, but,
come to think about it, might be not that bad after all:

We could create a compile-time GUID template, and register against its
instantiations. Some of the outputs of the Guidgen are quite suitable for
instantiation of such a template. This class could be passed from the
function using sizeof() in four steps...

Probably an overkill, though. And would probably introduce noticable
compile-time performance penalty...

Besides, is GUID a portable concept?

Arkadiy


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