Using boost::bind to assign functions
Some code samples I have collated in the sample below, that demonstrate how boost::function can be assigned with functors, ordinary functions, class member functions and overloaded class member functions respectively. Giving the following output: 5 / 3 = 1.66667 Average = 37 Average = 37 Average = 37 Do this Do that Do other Integer …