I'm relatively new to c++ and so i don't know how to implement my problem. I will schematically present my problem instead of the actual code, hopefully this will give general solutions that other users can use as well.
I have:
a class A defined in a header A.h (with its proper A.cpp)
a class B in header B.h (with its proper B.cpp)
in this class B, I have a function that uses as argument an object of A (objA), does something with it, and returns this object.
How should I define that function so that the class B recognizes the "type" objA in its function? Is it done with pointers, templates,...?
Thanks! Roeland