On Saturday, 4 August 2018 at 12:54:49 UTC, Steven Schveighoffer wrote:

Once you have an alias, it's the original thing in all respects. So there's no way to get the specific alias that was used. That's not a bug, but a feature.

Aha. Thanks.



I've tried std.traits.TemplateOf and __traits(isSame and also variations of typeof and also traits.isInstanceOf. I wonder if I have to parameterize eq and lt over a compile time sequence instead?

Any tips to get this working?

I'd focus on encoding the lt/gt into a type. Much easier to test types. Perhaps a UDA works on an alias? I'm not sure.

-Steve

Making it a type did indeed work (posted a reply with the solution to the previous poster).

Cheers,
- Ali


Reply via email to