<?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>cpprefjpでfuture関係を書いてるのでその検証。 たとえば、std::promiseに対して2回以上値を書き込むと、std::future_error例外が投げられます。 #include &lt;iostream&gt; #include &lt;future&gt; #include &lt;thread&gt; #include &lt;functional&gt; void foo(std::promise&lt;int&gt;&amp; p) { p.set_value(3); try { p.set_value(1); } catch (std::future_error&amp; e) { std::cout &lt;&lt; e.code().messa…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20120920%2F1348116553&quot; title=&quot; future_errorの調査 - 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>2012-09-20 13:49:13</published>
  <title> future_errorの調査</title>
  <type>rich</type>
  <url>https://faithandbrave.hateblo.jp/entry/20120920/1348116553</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
