Deal with template in .hpp and .cpp