This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][libstdc++-v3 parallel mode] Tackle further XXX todos


> // XXX atomics interface?
> 
> Very good idea, but how do I bring it in?  Already
> 
> #include <cstdatomic>
> 
> or
> 
> #include <stdatomic.h>
> 
> make the compilation fail.  Is there any way to get access to the
> functions without enabling the C++0x mode?  

You'd have to use C++0x and the -std=gnu++0x compile flag to get this
to work, and the lack of this is what I'm assuming is the cause of your
compilation fail.

How would you bridge parallel/compatability.h constructs to
C++0x cstdatomic?

I think this would be an interesting experiment, although I can
understand your reluctance to require C++0x flags for compilation. 

-benjamin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]