I don't want to use any raw pointers and want to use C++11 smart_ptrs in my code.
In case of association and aggregation(parts can exist independently), what smart pointer should I use?
Should I use weak_ptr and let the main program handle ownership ? Should I use shared_ptr and let everything automated ?
Aucun commentaire:
Enregistrer un commentaire