【发布时间】:2014-08-26 16:49:15
【问题描述】:
我可以在 .cpp 文件中使用 VS 2013 中的 __forceinline 吗?
从本手册的示例看来,这似乎是可能的 http://msdn.microsoft.com/en-us/library/z8y1yy88.aspx 。但我想确定。
【问题讨论】:
-
您尝试过吗?那时发生了什么?还要注意链接文档页面中第二行的开头。
-
为什么不启动编译器并试一试呢?
-
我手头没有VS。我想,也许有人在 .cpp 中使用它
-
来自您链接的文档:
The __inline and __forceinline keywords are available in both C and C++。
标签: c++ visual-studio