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

Benjamin Kosnik bkoz@redhat.com
Mon Sep 28 22:27:00 GMT 2009


> // 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



More information about the Libstdc++ mailing list