title: Getting a typedef that does not depend on templates of a templated class
body: <p>Apologies in advance if this is a duplicate - I was not able to find my answer here. I have the following class:</p>
  
  <pre><code>template &lt;typename T&gt;
  class A {
  public:
      using X = double;
  
  private:
      T x;
  };
  </code></pre>
  
  <p>Now, I would like to obtain <code>A&lt;T&gt;::X</code>. Is that possible to do without declaring T?</p>
  
  <p>I tried something along the lines:</p>
  
  <pre><code>template &lt;typename T&gt;
  using B = A&lt;T&gt;::X;
  
  B e = 0;
  </code></pre>
  
  <p>But that clearly does not work without specifying the template.</p>