<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[delete this]]></title><description><![CDATA[<pre><code class="language-cpp">class CObject
{
  public:
    ...
    bool Delete()
    {
      delete this;
      return true;
    };
}

CObject *p = new CObject();
...
p-&gt;Delete();
</code></pre>
<p>Nur mal interesse halber: Ist es eigendlich garantiert, dass das Verlassen der Delete-Methode immer funktioniert? Hab bisher dazu leider nichts gefunden.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/121855/delete-this</link><generator>RSS for Node</generator><lastBuildDate>Sat, 22 Aug 2026 20:08:06 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/121855.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Sep 2005 07:08:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to delete this on Wed, 28 Sep 2005 07:08:58 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">class CObject
{
  public:
    ...
    bool Delete()
    {
      delete this;
      return true;
    };
}

CObject *p = new CObject();
...
p-&gt;Delete();
</code></pre>
<p>Nur mal interesse halber: Ist es eigendlich garantiert, dass das Verlassen der Delete-Methode immer funktioniert? Hab bisher dazu leider nichts gefunden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/881823</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/881823</guid><dc:creator><![CDATA[Herrmann]]></dc:creator><pubDate>Wed, 28 Sep 2005 07:08:58 GMT</pubDate></item><item><title><![CDATA[Reply to delete this on Wed, 28 Sep 2005 07:12:47 GMT]]></title><description><![CDATA[<p>Guckst du hier:<br />
<a href="http://www.parashift.com/c++-faq-lite/freestore-mgmt.html#faq-16.15" rel="nofollow">http://www.parashift.com/c++-faq-lite/freestore-mgmt.html#faq-16.15</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/881828</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/881828</guid><dc:creator><![CDATA[HumeSikkins]]></dc:creator><pubDate>Wed, 28 Sep 2005 07:12:47 GMT</pubDate></item><item><title><![CDATA[Reply to delete this on Wed, 28 Sep 2005 07:25:25 GMT]]></title><description><![CDATA[<p>Genau das habe ich gesucht. Danke HumeSikkins.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/881834</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/881834</guid><dc:creator><![CDATA[Herrmann]]></dc:creator><pubDate>Wed, 28 Sep 2005 07:25:25 GMT</pubDate></item></channel></rss>