Hi all
I'm going to write several classes that manage some kinds of data. There will be some class methods that will need to receive some objects of other classes, and I'm looking for the "best" method to share data between objects.
C++ has pointers and references. But I also see the shared data (soft/deep copies) functionality that uses QT toolkit. I find the shared data solution cleaner that others and this feels like Java objects; this way you can avoid pointer syntax and work with simple objects everywhere...
But... which one you see better to use?
Thanks!
I'm going to write several classes that manage some kinds of data. There will be some class methods that will need to receive some objects of other classes, and I'm looking for the "best" method to share data between objects.
C++ has pointers and references. But I also see the shared data (soft/deep copies) functionality that uses QT toolkit. I find the shared data solution cleaner that others and this feels like Java objects; this way you can avoid pointer syntax and work with simple objects everywhere...
But... which one you see better to use?
Thanks!