Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there some circumstances that boost::function could not be replaced by std::function?

Tags:

c++

boost

Are there some circumstances that boost::function could not be replaced by std::function?

It would be better if you could give some simple examples.

like image 433
John Avatar asked Oct 29 '25 04:10

John


1 Answers

From theboostcpplibraries.com:

If you work in a development environment supporting C++11, you have access to the class std::function from the header file <functional>. In this case you can ignore Boost.Function because boost::function and std::function are equivalent.

But it might depends of version of boost, see history.

like image 69
Jarod42 Avatar answered Oct 30 '25 21:10

Jarod42



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!