title: How to bind 'this' to a class function in C++ TR1?
body: <p>I wanted to create a function for a class method from a specific instance. As in the example, I'd like to create a function for <code>this-&gt;x</code>.</p>
  
  <pre><code>class A {
   public:
    void x(int p) { }
    void y() {
      function&lt;void(int)&gt; f = std::tr1::bind(
        &amp;A::x,
        this,
        std::tr1::placeholders::_1);
    }
  };
  </code></pre>
  
  <p>When I tried to compile this, I got very long error messages. One of them that might make some sense is <code>note:   no known conversion for argument 1 from ‘int’ to ‘int&amp;’</code></p>