On 11/22/19 4:04 AM, Jacob Carlborg wrote:
On Thursday, 21 November 2019 at 20:44:19 UTC, Steven Schveighoffer wrote:
I thought I could do typeid(Class).name to get the class name that
will be returned at runtime if you did typeid(instance).name. But it's
not accessible at compile-time.
What
On Thursday, 21 November 2019 at 20:48:03 UTC, Adam D. Ruppe
wrote:
On Thursday, 21 November 2019 at 20:45:16 UTC, Steven
Schveighoffer wrote:
To clarify, I need the compile time string that will match
typeid(instance).name, so I can match the derived type.
You have to make sure that the
On Thursday, 21 November 2019 at 20:44:19 UTC, Steven
Schveighoffer wrote:
I thought I could do typeid(Class).name to get the class name
that will be returned at runtime if you did
typeid(instance).name. But it's not accessible at compile-time.
What compile-time string should I use for
On Thursday, 21 November 2019 at 20:45:16 UTC, Steven
Schveighoffer wrote:
To clarify, I need the compile time string that will match
typeid(instance).name, so I can match the derived type.
You have to make sure that the derived type is passed to your
register function, but then
On 11/21/19 3:44 PM, Steven Schveighoffer wrote:
I thought I could do typeid(Class).name to get the class name that will
be returned at runtime if you did typeid(instance).name. But it's not
accessible at compile-time.
What compile-time string should I use for instance in a constructed
I thought I could do typeid(Class).name to get the class name that will
be returned at runtime if you did typeid(instance).name. But it's not
accessible at compile-time.
What compile-time string should I use for instance in a constructed
switch statement? I'm trying to implement serialization