"Johannes Pfau" wrote in message news:m5288s$l8$1...@digitalmars.com...
No, unfortunately not. The module where the template is instantiated needs to be the 'main' module. Or rather toObjfile must have been called on the function for backend inlining. Unfortunately this seems to be a complicated task.
Would it make sense to always call toObjfile for always-inline template functions? That should be harmless...