Boost logo

Boost :

Subject: Re: [boost] [winapi] [thread] Conflicting declarations on MinGW
From: Rob Stewart (rob.stewart_at_[hidden])
Date: 2015-12-31 17:45:31


On December 31, 2015 3:12:35 PM EST, Andrey Semashev <andrey.semashev_at_[hidden]> wrote:
> On 2015-12-31 22:56, Rob Stewart wrote:
> > On December 31, 2015 9:59:43 AM EST, "Agustín K-ballo Bergé"
> <kaballo86_at_[hidden]> wrote:
> >>
> >> However, for Boost.Thread to start dumping stuff in the global
> >> namespace sounds like a regression to me.
> >
> > Doesn't using extern "C" mean the name is in the global namespace?
> Did I miss something?
> >
> > IOW, putting the declaration in a namespace or not has no effect on
> the generated symbols or name lookup.
>
> Name lookup is not affected by the linkage type, so you still have to
> qualify the call to extern "C" functions with the namespace(s) they're
>
> declared in. The linkage type may affect name mangling and calling
> conventions, but that is almost outside of the scope of the standard.

http://stackoverflow.com/a/1041880

___
Rob

(Sent from my portable computation engine)


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