template and inline in cpp file