title: Template typedef error
body: <p>Can anyone explain why this code gives the error:</p>
  
  <pre><code>error C2039: 'RT' : is not a member of 'ConcreteTable'
  </code></pre>
  
  <p>(at least when compiled with VS2008 SP1)</p>
  
  <pre><code>class  Record
  {
  };
  
  template &lt;class T&gt;
  class Table
  {
  public:
      typedef typename T::RT Zot; // &lt;&lt; error occurs here
  };
  
  class ConcreteTable : public Table&lt;ConcreteTable&gt;
  {
  public:
      typedef Record RT;
  };
  </code></pre>
  
  <p>What can be done to fix it up.  Thanks!</p>
  
  <p><strong>Update:</strong> 
  Thanks pointing out the issue, and for all the suggestions.  This snippet was based on code that was providing an extensibility point within an existing code base, and the primary design goal was reducing the amount of work (typing) required to add new extensions using this mechanism.</p>
  
  <p>A separate 'type traits' style class actually fits into the solution best.  Especially as I could even wrap it in a C style macro if the style police aren't looking!</p>