<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fatalerror</author_name>
  <author_url>https://blog.hatena.ne.jp/fatalerror/</author_url>
  <blog_title>NF</blog_title>
  <blog_url>https://fatalerror.hatenablog.com/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>12回目：デバッグ文 - NF 前回の続きです。 まず、前回の実装だと基本型はそのまま数値で出力されますが、自分でto_stringを定義してオーバライド？していました。例えばboolの値を分かり易く「true/false」で出したければ、debug_outの前に以下を書いておく感じで。 string to_string(bool b) { return (b ? &quot;true&quot; : &quot;false&quot;); } 前回の実行結果がこうなります。 # ./a.out [i, f, b]: 10 3.140000 true 次に、前回載せた実装だけだとSTLとかがそのまま出せないですが、元のコードでは上と…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffatalerror.hatenablog.com%2Fentry%2F2021%2F11%2F28%2F192401&quot; title=&quot;13回目：デバッグ文（２） - NF&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-11-28 19:24:01</published>
  <title>13回目：デバッグ文（２）</title>
  <type>rich</type>
  <url>https://fatalerror.hatenablog.com/entry/2021/11/28/192401</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
