Added template keyword to help compatibility.

Signed-off-by: Steven Lovegrove <stevenlovegrove@gmail.com>