What is the difference between boost::bind and boost::lambda::bind?

让人想犯罪 __ 提交于 2019-12-21 04:57:20

问题


I can see that there are two different bind libraries for Boost, one "standalone", that can be used by including boost/bind.hpp, and another by including boost/lambda/bind.hpp. What's the difference between these two?


回答1:


Have a look at the explanation here: http://boost.org/doc/libs/1_46_0/doc/html/lambda/s08.html#id2143701

They have overlapping functionality but with semantic differences, they can't be used interleaved.



来源:https://stackoverflow.com/questions/5202974/what-is-the-difference-between-boostbind-and-boostlambdabind

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