Re: Instantiate templated class at runtime

2019-05-27 Thread Simen Kjærås via Digitalmars-d-learn
On Sunday, 26 May 2019 at 17:51:37 UTC, Aphex wrote: 1. Is it possible to have a runtime class and struct creator function that can deal with templates. It doesn't seem like it should be that big a deal. One only needs to actually know the size of class and that will depend on the template

Instantiate templated class at runtime

2019-05-26 Thread Aphex via Digitalmars-d-learn
I have been using Orange SerDes library for an application and have run in to a major hurdle. I have the need to SerDes a templated class. It seems Orange can only Serialize the class but when it attempts to deserialize it at runtime it cannot build the class. It represents the type in the