Should this work: export extern(C) auto ...

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Mar 18 14:50:39 PDT 2015


On Wednesday, 18 March 2015 at 15:50:16 UTC, Robert M. Münch 
wrote:
> struct1 is visible in the DLL, struct2 is not visible in the 
> DLL.

It will not work because a function with an auto return value is 
actually a template, and unused templates won't be put into a dll.


More information about the Digitalmars-d-learn mailing list