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.
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.