We have an outdated system that intensively uses boost :: function , now it decided to switch to more modern modern C ++ standards. Suppose we have such an inherited function:
void someFunction(boost::function<void(int)>);
Is it safe to directly pass a C ++ 11 function?
std::function<void(int)> func = [](int x){
}
someFunction(func);
Does boost :: function also support standard lambda C ++ 11?
someFunction([](int x)->void{
});
source
share