On Thursday, 11 January 2018 at 08:59:01 UTC, Chirs Forest wrote:
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...
On Thursday, January 11, 2018 08:59:01 Chirs Forest via Digitalmars-d-learn
wrote:
> 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 t
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