From 3daabda84ce3c4dd1303170902a7eadea5f0241e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Delobel?= Date: Sun, 5 Feb 2023 00:20:03 +0100 Subject: [PATCH] =?UTF-8?q?detruire=20objet=20mais=20toujours=20r=C3=A9f?= =?UTF-8?q?=C3=A9renc=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index a0eb769..17df680 100644 --- a/main.cpp +++ b/main.cpp @@ -106,7 +106,7 @@ int main() cout << endl << "alpha: " << alpha->name() << " omega: " << omega->name() << endl << endl; // delete only element only present in vanime - delete kyle; + // delete kyle; // Ça pue. Kyle est détruit mais son pointeur doit encore être présent dans la liste! auto *otherKenny = new Kenny("Kenny", 12); anime.push_back(otherKenny);