<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>faith_and_brave</author_name>
  <author_url>https://blog.hatena.ne.jp/faith_and_brave/</author_url>
  <blog_title>Faith and Brave - C++で遊ぼう</blog_title>
  <blog_url>https://faithandbrave.hateblo.jp/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>先日、boost::lexical_castの議論がTwitterでありまして その中で「lexical_castは変換失敗時に例外を投げるが、boost::optional版も用意すべき」という意見がありました。 下位互換性を保ったまま、boost::lexical_castにboost::optional版を追加するには lexical_cast_optionalのような別名の関数を用意する、という選択肢がありますが C++0xで導入される関数テンプレートのデフォルトテンプレート引数を使用すれば これをオーバーロードで解決することができます。 以下は、関数テンプレートのデフォルトテンプレー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20091225%2F1261734967&quot; title=&quot; エラー時の動作を切り替えられるlexical_cast - Faith and Brave - 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>2009-12-25 18:56:07</published>
  <title> エラー時の動作を切り替えられるlexical_cast</title>
  <type>rich</type>
  <url>https://faithandbrave.hateblo.jp/entry/20091225/1261734967</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
