除了微软即将推出的VC10?C++ 0x的任何实现在那里?
3
A
回答
9
here是的C++ 0x的支持良好的击穿几个主要的编译器
7
对于主要兼容的C++ 0x实现,您可以运行g++ -std=c++0x
。
从手册:
c++0x The working draft of the upcoming ISO C++0x standard. This option enables experimental features that are likely to be included in C++0x. The working draft is constantly changing, and any feature that is enabled by this flag may be removed from future versions of GCC if it is not part of the C++0x standard.
正如在行动它的一个愚蠢的小例子:
$ cat a.cpp
const int FOO_VERSION = 2;
int main() {
static_assert(FOO_VERSION >= 3, "Your version of Foo doesn't contain the necessary bugfixes to run this program correctly.");
return 0;
}
$ g++ -std=c++0x a.cpp
a.cpp:1:17: error: stdio: No such file or directory
a.cpp: In function ‘int main()’:
a.cpp:6: error: static assertion failed: "Your version of Foo doesn\'t contain the necessary bugfixes to run this program correctly."
此外,作为@GMan在评论中提到,GCC's list of C++0x compatibility可以在网上找到。
1
相关问题
- 1. 任何WinRT的iCommand/CommandBinding实现样本在那里?
- 2. 实现移动fstreams的C++ 0x库
- 3. 实现一个好的C++ 0x error_condition?
- 4. C++ 0x原子模板实现
- 5. 任何现有的PHP代码在那里为condorcet比较?
- 6. 任何好的C++ 0x概述?
- 7. 任何AppWidgetHost-教程在那里?
- 8. 任何PHP - > jQuery库在那里?
- 9. std :: C++的gcc实验性实现的未来异常0x
- 10. 建立在C++ 0x线程标准上的Actor实现
- 11. 那里有任何入门套件/开源支持中心实现?
- 12. 如何实现C++ 0x原始字符串文字?
- 13. 如何使用pre-C++ 0x(VS2008)实现“变量模板”?
- 14. C++ 0x - 何时?
- 15. C++编译器如何在C++ 0x中实现线程本地存储?
- 16. 那里有任何SVG动画工具?
- 17. 那里有任何锦标赛API吗?
- 18. 0x来自哪里?
- 19. Visual C++ 2010 Beta 1是否具有unique_ptr,如果没有,我可以在哪里获得C++ 0x参考实现?
- 20. PHP:在那里
- 21. DoJo AMD在那里有任何真实世界的应用程序?
- 22. 在哪里实现BackgroundWorker。 Winforms c#
- 23. 任何在Visual Foxpro中编程的人都在那里?
- 24. 如何在C++(C++ 0x)中使用'auto'?
- 25. C中是否有任何NFS实现?
- 26. 任何优秀的UML电话筛选问题都在那里?
- 27. 任何好的表达混合教程在那里?
- 28. 任何基于Silverlight的Thumbstick控件都在那里?
- 29. System.ServiceModel.ServiceHost.Dispose()的实现在哪里?
- 30. C#TargetInvocationException - (不应该在那里?)
这份清单似乎不完整......(但无论如何它都是很好的来源) – Klaim 2010-03-22 09:54:08