Fixed function templates in relation to dangerous functions