I am doing exercise from thinking in C++ , chapter 11(references and copy constructors) exercise 20. but I am having problem in understanding the exercise itself. It says
"Create a very simple class, and a function that returns an object of that class by value. Create a second function that takes a reference to an object of your class. call the first function as the argument of the second function," and demonstrate that the second function must use a const reference as its argument.
My problem is the bolded sentence , how can a function take another function as argument?