<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>osyo-manga</author_name>
  <author_url>https://blog.hatena.ne.jp/osyo-manga/</author_url>
  <blog_title>C++でゲームプログラミング</blog_title>
  <blog_url>https://osyo-manga.hatenadiary.org/</blog_url>
  <categories>
    <anon>Sprout</anon>
    <anon>C++</anon>
  </categories>
  <description>ちょっとハマったことがあったので覚書 [比較] Sprout.Variant で比較を行う場合、型が合っていないとエラーになります。 typedef sprout::variant&lt;int, float&gt; var_type; static constexpr var_type x{10}; static_assert(x == 10, &quot;&quot;); static_assert(x != 0.0f, &quot;&quot;); // static_assert(x == 10u, &quot;&quot;); // 比較する型が違うのでエラー Sprout.Weed で or 演算子を使用すると Sprout.Variant 型で返って…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fosyo-manga.hatenadiary.org%2Fentry%2F20120120%2F1326986550&quot; title=&quot;Sprout.Variant の覚書 - C++でゲームプログラミング&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>2012-01-20 00:22:30</published>
  <title>Sprout.Variant の覚書</title>
  <type>rich</type>
  <url>https://osyo-manga.hatenadiary.org/entry/20120120/1326986550</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
