<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wata_d</author_name>
  <author_url>https://blog.hatena.ne.jp/wata_d/</author_url>
  <blog_title>閑古鳥</blog_title>
  <blog_url>https://www.little-cuckoo.jp/</blog_url>
  <categories>
    <anon>programming</anon>
    <anon>C++</anon>
  </categories>
  <description>テンプレート引数に符号なしの short もしくは char の型を受け取った時に、そいつの符号ありにした型をどうにかして引っ張って来れないだろうか、と真面目に考えてしまった。無理だよね……。なんかすごいがんばればできるんじゃないか、とかちょっとだけ夢見てしまいました。 template&lt;class T&gt; //&lt; とりあえずここは unsigned short とする void func(T value) { // signed short の min がほしい T hoge = value - std::numeric_limits&lt;signed T&gt;::min(); } void main…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.little-cuckoo.jp%2Fentry%2F20050818%2F1124276019&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>2005-08-18 19:53:39</published>
  <title>妄想</title>
  <type>rich</type>
  <url>https://www.little-cuckoo.jp/entry/20050818/1124276019</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
