title: C++ template static pointer-to-member initialization
body: <p>I have a template class which has a static pointer-to-member, like this:</p>
  
  <pre><code>template&lt;class T, T* T::*nextptr&gt;
  class Queue
  {
      T* head;
      T* tail;
      static T* T::*pnext;
  };
  </code></pre>
  
  <p>My question is how to write the initializer of the static pointer-to-member. I tried the obvious case:</p>
  
  <pre><code>template&lt;class T, T* T::*nextptr&gt; T* Queue&lt;T, nextptr&gt;::*pnext(nextptr);
  </code></pre>
  
  <p>But that didn't work. Any idea?</p>