|
Boost : |
Subject: Re: [boost] [winapi] [thread] Conflicting declarations on MinGW
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2015-12-31 15:12:35
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk