Boost logo

Boost :

From: Fernando Cacciola (fcacciola_at_[hidden])
Date: 2002-03-07 16:31:28


----- Original Message -----
From: "Peter Dimov" <pdimov_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Thursday, March 07, 2002 6:02 PM
Subject: Re: [boost] bind placeholders/tuples ignore and BCB pch

> From: "Fernando Cacciola" <fcacciola_at_[hidden]>
> [...]
> > I also noticed that the bind placeholders have changed in the new
version,
> > but the change doesn't solve the Borland problem.
> >
> > As it has been mentioned before, the solution is to declare those
> variables
> > 'extern' (except once in some TU).
>
> And of course there's also the problem that _1 is fine in the unnamed
> namespace but illegal at file scope. :-(
>
>
>
In both cases, identifiers are visible at global scope, thus, they have just
exactly the same probability of clashing with other names at compile time.

Do you mean that the extern '_1' may clash at link time? Well, that's
true... though very unlikely, IMHO.
If possible clashes are at stake, they can go in ::boost, or have other
names as has been suggested.

Another alternative which I also suggested is to get rid a the 'variable'
and use an inline function: _1()

Fernando Cacciola
Sierra s.r.l.
fcacciola_at_[hidden]
www.gosierra.com


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