<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ai_gaminglife</author_name>
  <author_url>https://blog.hatena.ne.jp/ai_gaminglife/</author_url>
  <blog_title>Gaming Life</blog_title>
  <blog_url>https://ai-gaminglife.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>std::bindを使っていたらある問題に遭遇した。 void func(int a){ std::cout &lt;&lt; a * 10 &lt;&lt; std::endl; } int main(){ using namespace std::placeholders; auto fuction = std::bind(func, _1); function(2); } std::bindを使ってライブラリで用意されている関数を束縛し別のところで呼び出す、といったことをしたかったのだが、これが何故かコンパイルが通らなかった。（実際は、クラスのメンバ関数をbindした。簡単のためそのコードはここに示す ） なぜ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fai-gaminglife.hatenablog.com%2Fentry%2F2019%2F08%2F20%2F171314&quot; title=&quot;std::bindではデフォルト引数を省略できない - Gaming Life&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>2019-08-20 17:13:14</published>
  <title>std::bindではデフォルト引数を省略できない</title>
  <type>rich</type>
  <url>https://ai-gaminglife.hatenablog.com/entry/2019/08/20/171314</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
