fixed template class declaration