Getting a Type from TypeInfo / Getting Variant Type
Chirs Forest via Digitalmars-d-learn Thu, 11 Jan 2018 01:01:41 -0800
I'm using std.variant.Variant to hold a value of unknown type
(not a string, could be a numeric type or a container holding
multiple numeric types). I'm trying to retrieve this value with
.get!T but I need the type to do that... .type gives me TypeInfo,
but that's not a type so I'm not sure how to get the type without
checking the TypeInfo against all possible types (which would be
a massive pain).
- Getting a Type from TypeInfo / Ge... Chirs Forest via Digitalmars-d-learn
- Re: Getting a Type from Type... Jonathan M Davis via Digitalmars-d-learn
- Re: Getting a Type from Type... Simen Kjærås via Digitalmars-d-learn