title: C++ Passing Operator as Parameter
body: <p>Having trouble finding any resources on this. </p>
  
  <pre><code>struct Beta {
      int foo;
      int bar;
      Beta(int aFoo, int aBar) : foo(aFoo), bar(aBar) {}
  
      operator Alpha() const { return Alpha(foo, bar); }
  }
  struct Alpha {
      float foo;
      float bar;
      Alpha(float aFoo, float aBar) : foo(aFoo), bar(aBar) {}
  }
  </code></pre>
  
  <p>And now I have:</p>
  
  <pre><code>vector&lt;Beta&gt; betas;
  vector&lt;Alpha&gt; alphas;
  transform(beta.begin(), beta.end(), back_inserter(alphas), &amp;Beta.operator Alpha());
  </code></pre>
  
  <p>But this fails so I'm wondering the proper way to do it.</p>