Hi,
I have two classes that share a common data list (specifically, a std::vector). This data list should be accessed by the two classes only, so I think using a global variable is not a good solution. Actually I am so confused to find an elegant way to store such common data for the two.
If you have any idea about that, please let me know.
Thanks alot!
.viettrung.
I have two classes that share a common data list (specifically, a std::vector). This data list should be accessed by the two classes only, so I think using a global variable is not a good solution. Actually I am so confused to find an elegant way to store such common data for the two.
If you have any idea about that, please let me know.
Thanks alot!
.viettrung.
Comment