Avoided warning in Cpp template