How std::bind works with member functions
When you say “the first argument is a reference” you surely meant to say “the first argument is a pointer“: the & operator takes the address of an object, yielding a pointer. Before answering this question, let’s briefly step back and look at your first use of std::bind() when you use std::bind(my_divide, 2, 2) you … Read more