使用经过检查的 STL 实现,有什么可以免费使用的吗?
- 您是否使用过经过检查的 STL 实现?
- 它是否发现了您没有预料到的错误?
- 有没有可以在 Linux 上免费试用的软件?
- Have you used a checked STL implementation?
- Did it find bugs you were not expecting?
- Is there one I can try on Linux for free?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
GCC 附带的标准 C++ 库的 GNU 实现已经检查了 STL。只需将
-D_GLIBCXX_DEBUG
添加到命令行即可。是的,我用过。我不能肯定地说它是否捕获了错误,但它让我更有信心不会错过某些类别的错误。
由于性能开销,我们仅使用经过检查的 STL 进行调试构建。
The GNU implementation of the standard C++ library that comes with GCC has checked STL. Just add
-D_GLIBCXX_DEBUG
to your command line.Yes, I've used it. I can't say for sure if it's caught bugs but it gives me more confidence that certain classes of bugs aren't being missed.
Because of performance overhead, we only use checked STL for debug builds.
我从来没有使用过它,但快速搜索显示 STLPort 在 检查了迭代器调试模式。
I have not used it ever, but a quick search shows that STLPort has checked iterators in DEBUG mode.