John
John

Reputation: 3524

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

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

Answers (1)

Jarod42
Jarod42

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 because boost::function and std::function are equivalent.

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

Upvotes: 2

Related Questions