C++ Boost:BOOST_FOREACH 有什么问题吗? [英] C++ Boost: Any gotchas with BOOST_FOREACH?

查看:18
本文介绍了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?

(此问题部分源自此处.)

推荐答案

看一看:

  • 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 有什么问题吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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