Reputation: 3524
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.
Upvotes: 4
Views: 135
Reputation: 217810
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 becauseboost::function
andstd::function
are equivalent.
But it might depends of version of boost, see history.
Upvotes: 2