Move explicit template instantiation to end of file