When should I use std::bind?
Here’s something you can’t do with a lambda: std::unique_ptr<SomeType> ptr = …; return std::bind(&SomeType::Function, std::move(ptr), _1, _2); Lambdas can’t capture move-only types; they can only capture values by copy or by lvalue reference. Though admittedly this is a temporary issue that’s being actively resolved for C++14 ๐ “Simpler and clearer” is a matter of opinion. … Read more