c + +提升:与BOOST_FOREACH任何陷阱? [英] C++ Boost: Any gotchas with BOOST_FOREACH?

查看:135
本文介绍了c + +提升:与BOOST_FOREACH任何陷阱?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这一个是加速的专家。是否有任何陷阱或细节,程序员需要知道他去之前,并取代所有的旧的C / C ++风格与精益和均值的前瞻性 BOOST_FOREACH ?

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?

(这个问题的一部分是这里 的。)

(This question is partly derived from here.)

推荐答案

在看看:


  • 文章的基本原理的理解

  • 文档的缺陷部分

  • 以防万一你节正在开发跨平台的产品

  • 的<一个错误的页面href=\"https://svn.boost.org/trac/boost/search?q=BOOST%5FFOREACH&noquickjump=1&ticket=on\">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_FOREACH任何陷阱?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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