When is boost phoenix useful? [duplicate]

时光总嘲笑我的痴心妄想 提交于 2019-12-12 08:19:31

问题


Possible Duplicate:
What are the benefits of using Boost.Phoenix?

So I started reading the documentation for boost phoenix.

However, I must admit that I don't quite understand the purpose of the library, especially since we have language support for lambdas in C++0x.

Could someone please explain or give me an example?


回答1:


Well, not all C++ compilers support C++0x for a start.

Then there are some things that are not possible with C++0x but that are possible with phoenix. See this for instance: C++0x lambdas with template parameters?.




回答2:


The Phoenix talk at BoostCon 2011 has a slide comparing Phoenix function objects with C++0x lambdas. See slide 24 here.



来源:https://stackoverflow.com/questions/6160931/when-is-boost-phoenix-useful

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!