0

What's the difference between raw function pointer vs boost::bind pointer return value?

Steve Jessop
  • 273,490
  • 39
  • 460
  • 699

1 Answers1

4

bind does not return a pointer at all. It returns an object containing a function pointer and the bound arguments, with an overloaded operator() that can be used to call it like a function.

So the main difference is that the result of bind stores the values you want to bind to function arguments; a raw pointer doesn't store anything.

Mike Seymour
  • 249,747
  • 28
  • 448
  • 644