Am 09.12.2012 21:22, schrieb Walter Bright:>
>
> Template instances are written to COMDAT sections, which are stripped
> out if they are not referenced.
>

But why does adding a void* pointer make a difference then? By adding a void* pointer to the struct it will still not be referenced

Before (broken):

struct Pod { float x; }

After (working):

struct Pod { float x; void* ptr; }

Kind Regards
Benjamin Thaut

Reply via email to