Exception handling in function templates: WIP