C++ templates working with objects *and* pointers
I want to make a function template that will work with object instances and pointers as well. This is important to me as this is the first step towards implementing a function that operates on a vector of elements as well as a vector of pointers to elements. Here my code so far #include <functional>… Read More C++ templates working with objects *and* pointers