prog.cpp:29:11: error: non-template ‘CMemoryPool’ used as template
CList<T>::CMemoryPool<typename CList<T>::Entry>::s_pool(1);
^
prog.cpp:29:11: note: use ‘CList<T>::template CMemoryPool’ to indicate that it is a template
prog.cpp:29:1: error: need ‘typename’ before ‘CList<T>::CMemoryPool’ because ‘CList<T>’ is a dependent scope
CList<T>::CMemoryPool<typename CList<T>::Entry>::s_pool(1);
^
prog.cpp: In function ‘int main()’:
prog.cpp:33:16: warning: unused variable ‘list’ [-Wunused-variable]
CList<int> list;
^