[英]Is #import part of the C++11 standard?
I'm trying to find out whether it's safe to use #import
(instead of #include
with include guards) in a cross-platform C++11 library? 我试图找出在跨平台的C ++ 11库中使用
#import
(而不是包含include防护的#include
)是否安全?
The articles I found on SO and elsewhere seem to indicate that #import was proposed to be included in the C++11 standard, yet judging by answers from around ~2012 it still seemed to be Microsoft and GCC specific extensions with import not being an accepted standard. 我在SO和其他地方找到的文章似乎表明,建议将#import包含在C ++ 11标准中,但是从大约2012年左右的答案来看,它似乎仍然是Microsoft和GCC的特定扩展,而import并不是一个扩展。公认的标准。
No, there's no " #import
" in the current C++ standard. 不,当前的C ++标准中没有“
#import
”。
The syntax has often been proposed as part of a module system for C++, but so far there hasn't been sufficient consensus on how such a system should work in detail. 语法经常被提议作为C ++ 模块系统的一部分,但是到目前为止,关于这种系统应如何详细工作还没有达成足够的共识。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.