如果编译器是Cpp0x兼容,什么是#defined? [英] What is #defined if a compiler is Cpp0x compliant?
本文介绍了如果编译器是Cpp0x兼容,什么是#defined?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当编译器符合Cpp0x时,是否有任何官方或非官方的#define?
更好的是,对于特定的Cpp0x功能(〜#cpp0xlambda,#cpp0xrvalue等)?
Is there any official, or inofficial, #defines for when a compiler is Cpp0x compliant? Even better, for specific Cpp0x functionality (~#cpp0xlambda, #cpp0xrvalue etc)?
p>
推荐答案
__ cplusplus
在C ++ 0x中,宏
__ cplusplus
将被设置为不同于)当前199711L
。
__cplusplus
In C++0x the macro
__cplusplus
will be set to a value that differs from (is greater than) the current199711L
.
这篇关于如果编译器是Cpp0x兼容,什么是#defined?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文