Explicit instantiations must be placed after the implementation for older g++ versions.