I have a template class that has a static member pointer, like this:
template<class T, T* T::*nextptr> class Queue { T* head; T* tail; static T* T::*pnext; };
My question is how to write a static member pointer initializer. I tried the obvious case:
template<class T, T* T::*nextptr> T* Queue<T, nextptr>::*pnext(nextptr);
But that did not work. Any idea?
source share