Eliminar explícitamente un shared_ptr
Pregunta simple aquí: ¿tienes permiso para borrar explícitamente unboost::shared_ptr
¿tú mismo? ¿Deberías alguna vez?
Para aclarar, no me refiero a eliminar el puntero que contiene elshared_ptr
. Quise decir el realshared_ptr
sí mismo. Sé que la mayoría de la gente sugiere no hacerlo, así que me preguntaba si está bien hacerlo explícitamente.