Is it possible to create a generic C++ function foo?
foo
foo(Object bar, Object fred) { //code }
in which that if the two objects
I think you are in dire need of Templates! You can write a template function and then write a specialization for the said types to do something specific if the need be.