[英]What is the difference between boost::bind and boost::lambda::bind?
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
. 我可以看到Boost有两个不同的绑定库,一个是“独立的”,可以通过包含boost/bind.hpp
,另一个包含boost/lambda/bind.hpp
。 What's the difference between these two? 这两者有什么区别?
Have a look at the explanation here: http://boost.org/doc/libs/1_46_0/doc/html/lambda/s08.html#id2143701 看看这里的解释: 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. 它们具有重叠的功能但具有语义差异,它们不能交错使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.