This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Joshua.J.Cogliati
Recipients Arfrever, Joshua.J.Cogliati,, gustavotemple, jrincayc, lbianc, python-dev, vstinner
Date 2015-03-16.14:11:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
>> using namespace std;

>Doing this in a header is ugly.

If you put it in the:
#ifdef __cplusplus
extern "C" {

then it would only apply till the end of the pyatomic header, and not to anything that includes it.  Something like:

#ifdef __cplusplus
extern "C" {
#if defined(HAVE_STD_ATOMIC)
using namespace std;

But if you are already defining:
#define _Atomic(T) atomic<T>
maybe it should be:
#define _Atomic(T) std::atomic<T>

(I haven't checked any of this code, but they would get around the namespace std being changed in code that includes pyatomic.h problem. )
Date User Action Args
2015-03-16 14:11:28Joshua.J.Cogliatisetrecipients: + Joshua.J.Cogliati, vstinner, Arfrever, jrincayc, python-dev,, gustavotemple, lbianc
2015-03-16 14:11:28Joshua.J.Cogliatisetmessageid: <>
2015-03-16 14:11:28Joshua.J.Cogliatilinkissue23644 messages
2015-03-16 14:11:28Joshua.J.Cogliaticreate