Re: [cfe-users] Anyway to prevent this code from compiling?

2016-03-01 Thread don hinton via cfe-users
That's a good point. Since mutex is a new c++11 feature, why is it injected into the std namespace when not compiling with c++11. I looked at the mutex header, and it doesn't test current value of __cplusplus. Should it? On Mon, Feb 29, 2016 at 3:07 PM, Jim Porter via cfe-users < cfe-users@list

Re: [cfe-users] Anyway to prevent this code from compiling?

2016-03-01 Thread don hinton via cfe-users
Just looked online and stdlibc++ has this at the top the mutex header: https://gcc.gnu.org/onlinedocs/gcc-4.9.3/libstdc++/api/a01070_source.html #if __cplusplus < 201103L # include #else Shouldn't we perform the same sort of check? On Tue, Mar 1, 2016 at 8:57 AM, don hinton wrote: > That's a