C++ Boost: Any gotchas with BOOST_FOREACH?(C++ Boost:BOOST_FOREACH 有什么问题吗?)
本文介绍了C++ Boost:BOOST_FOREACH 有什么问题吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是给 Boost 专家的.在程序员进入并用看起来精益求精的BOOST_FOREACH
替换所有旧的C/C++风格循环之前,是否有任何问题或细节需要注意?
This one is for Boost experts. Are there any gotchas or details that the programmer needs to be aware of before he goes in and replaces all his old C/C++ style loops with the lean-and-mean-looking BOOST_FOREACH
?
(此问题部分源自此处.)
推荐答案
看一看:
- 有条件的爱文章,了解基本原理
- 文档的陷阱部分
- 可移植性部分就在如果您正在开发跨平台产品
- BOOST_FOREACH的错误页面一个>
- The Conditional Love article for an understanding of the rationale
- The Pitfalls section of documentation
- The Portability section just in case you are developing cross-platform products
- The bugs page for BOOST_FOREACH
这篇关于C++ Boost:BOOST_FOREACH 有什么问题吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
沃梦达教程
本文标题为:C++ Boost:BOOST_FOREACH 有什么问题吗?
猜你喜欢
- 静态初始化顺序失败 2022-01-01
- Stroustrup 的 Simple_window.h 2022-01-01
- STL 中有 dereference_iterator 吗? 2022-01-01
- 近似搜索的工作原理 2021-01-01
- 从python回调到c++的选项 2022-11-16
- 如何对自定义类的向量使用std::find()? 2022-11-07
- 一起使用 MPI 和 OpenCV 时出现分段错误 2022-01-01
- C++ 协变模板 2021-01-01
- 与 int by int 相比,为什么执行 float by float 矩阵乘法更快? 2021-01-01
- 使用/clr 时出现 LNK2022 错误 2022-01-01