decl/def switch doesn't work for templates
