title: Noob boost::bind member function callback question
body: <pre><code>#include &lt;boost/bind.hpp&gt;
  #include &lt;iostream&gt;
  
  using namespace std;
  using boost::bind;
  
  class A {
  public:
      void print(string &amp;s) {
          cout &lt;&lt; s.c_str() &lt;&lt; endl;
      }
  };
  
  
  typedef void (*callback)();
  
  class B {
  public:
      void set_callback(callback cb) {
          m_cb = cb;
      }
  
      void do_callback() {
          m_cb();
      }
  
  private:
      callback m_cb;
  };
  
  void main() {
      A a;
      B b;
      string s("message");
      b.set_callback(bind(A::print, &amp;a, s));
      b.do_callback();
  
  }
  </code></pre>
  
  <p>So what I'm trying to do is to have the print method of A stream "message" to cout when b's callback is activated.  I'm getting an unexpected number of arguments error from msvc10.  I'm sure this is super noob basic and I'm sorry in advance.  </p>