<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mtv</author_name>
  <author_url>https://blog.hatena.ne.jp/mtv/</author_url>
  <blog_title></blog_title>
  <blog_url>https://rgba.hatenablog.com/</blog_url>
  <categories>
    <anon>実験してみた</anon>
  </categories>
  <description>メンバー向けトレーニングネタその１。delete this は危険に見えるが何を削除しているのか確認する。 class ClassA { public: void del() { delete this; } }; int main() { ClassA* ptr = new ClassA(); ptr-&gt;del(); // ダメな例 // ClassA test; // test.del(); return 0; } (gdb) b ClassA::del Breakpoint 1 at 0x4006aa: file test.cc, line 6. (gdb) run Breakpoint…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frgba.hatenablog.com%2Fentry%2F20100703%2Fp2&quot; title=&quot; delete this の安全性 - &quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-07-03 00:00:01</published>
  <title> delete this の安全性</title>
  <type>rich</type>
  <url>https://rgba.hatenablog.com/entry/20100703/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
