Fixing friend template class_ declaration