Fix compiler errors in template example
Merge pull request #235 from dmcdougall/fix-template-eg-compile

Fix compiler errors in template example