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 …

Continue reading ‘Using boost::bind to assign functions’ »

Using boost::bind as an improved means of calling member functions

This post takes a look at using boost::bind as a means of calling class member functions in an efficient and generic way. It basically summarizes what has already been said at Björn Karlsson’s excellent Informit article. Since I found the post useful, I thought it worth reproducing here, using the same status class but containing …

Continue reading ‘Using boost::bind as an improved means of calling member functions’ »