<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>derwind</author_name>
  <author_url>https://blog.hatena.ne.jp/derwind/</author_url>
  <blog_title>らんだむな記憶</blog_title>
  <blog_url>https://randommemory.hatenablog.com/</blog_url>
  <categories>
    <anon>C/C++</anon>
  </categories>
  <description>ロベールのＣ＋＋教室 - 第４４章 テンポラリ - をチラ見しつつ、改めてローカルオブジェクトの return には色んな意味でちょっと抵抗を感じてしまう。 最後に補足しておくと、ＶＣ＋＋だと、テンポラリオブジェクトを参照に代入すると、寿命が参照の寿命にまで引き延ばされるようです。しかし、参照に代入できること自体がＶＣ＋＋固有の機能のようなので、一般的に言えることではないと思われます。 これか・・・これか・・・。なんで「Visual Studio では動きますよ」って渡されたコードが、g++ でビルドすると戻り値を受け取った次の行くらいでクラッシュするのか不思議だったし、規格的にやばそうなのに…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2021%2F06%2F20%2F225524&quot; title=&quot;ローカルオブジェクトを返す - らんだむな記憶&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>2021-06-20 22:55:24</published>
  <title>ローカルオブジェクトを返す</title>
  <type>rich</type>
  <url>https://randommemory.hatenablog.com/entry/2021/06/20/225524</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
