gcc 4.8.1有C ++ 11支持垃圾收集吗? [英] Does gcc 4.8.1 have C++11 support for garbage collection?

查看:246
本文介绍了gcc 4.8.1有C ++ 11支持垃圾收集吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我问的原因是,网上有矛盾的信息。一方面,在 isocpp.org 它指出GCC 4.8.1具有完全实现的C ++ 11标准。另一方面, GCC C ++ 11支持页面说明没有Minimal对垃圾回收的支持和基于可达性的泄漏检测。因此,GCC 4.8.1真正的C ++ 11功能是完整的吗?

The reason I'm asking is, that there are contradictory pieces of information on the web. On the one hand on isocpp.org it states that GCC 4.8.1 has the C++11 standard implemented completely. On the other hand the GCC C++11 support page states that there is no "Minimal support for garbage collection and reachability-based leak detection". So is GCC 4.8.1 really C++11 feature complete?

推荐答案

请参阅 Bjarne Stroustrup C ++ 11常见问题)。因此,GCC 4.8.1是特征完整的,因为它实现了标准的所有强制性核心部分。

The support for garbage collection is optional by the standard (see Bjarne Stroustrup C++11 FAQ). Therefore, GCC 4.8.1 is feature complete since it implements all the mandatory core parts of the standard.

这些意见证明我的答案不清楚,我会更具体:只是谈论垃圾收集的核心支持。库部分是必需的。 GCC 4.8.1附带的libstdc ++的版本不完全符合C ++ 11(< regex> 目前不工作),垃圾ABI集合是缺少的功能的一部分。

The comments proved my answer unclear, I will be more specific: I was only talking about the core support for garbage collection. The library part is mandatory. The version of libstdc++ shipped with GCC 4.8.1 is not fully C++11-compliant (<regex> is not currently working for example), and the ABI for garbage collection is part of the missing features.

这篇关于gcc 4.8.1有C ++ 11支持垃圾收集吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆