title: Compile time deduction of template member function
body: <p>Is it possible to get the return type of a template member function at compile time? </p>
  
  <p>I guess I need something along the lines of:</p>
  
  <pre><code>template&lt;class T&gt;
  struct SomeClass
  {  
       // T must have a function foo(int), but do not know the
       // return type, it could be anything
       using RType = ??? T::foo(int) ???; // Is it possible to deduce it here?
  }
  </code></pre>