title: Problems adapting member functions in Phoenix
body: <p>I use <code>BOOST_PHOENIX_ADAPT_FUNCTION</code> all the time in Spirit. I'd like to be able to adapt member functions for all of the same reason. However, I get compile errors if I do something like this:</p>
  
  <pre><code>struct A { int foo(int i) { return 5*i; }};
  
  BOOST_PHOENIX_ADAPT_FUNCTION(int, AFoo, &amp;A::foo, 2)
  </code></pre>
  
  <p>Is there an easy way to adapt a member function? Note that I can't just store a bind expression in an <code>auto</code> because I am on VC2008. How come it doesn't just work like in <code>bind</code> and <code>function</code>?</p>
  
  <p>Thanks,</p>
  
  <p>Mike</p>