Correct cpp template to just let units compile