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
On 8/3/18 12:17 PM, aliak wrote:
Hi
Is there a way to tell if an alias is to a template?
I'm writing some algorithms and I need to distinguish between a binary
predicate that provides "less than" and one that provides "equal to"
semantics. So I have these two templates:
template eq(alias
On Friday, 3 August 2018 at 19:10:45 UTC, Hakan Aras wrote:
I don't think you can distinguish between entities evaluated
through different templates. TemplateOf will paradoxically not
work on pure templates of the form "template X() {}" only
things like template functions and template structs.
I don't think you can distinguish between entities evaluated
through different templates. TemplateOf will paradoxically not
work on pure templates of the form "template X() {}" only things
like template functions and template structs. isSame, is, and
isInstanceOf will only work on the fully
Hi
Is there a way to tell if an alias is to a template?
I'm writing some algorithms and I need to distinguish between a
binary predicate that provides "less than" and one that provides
"equal to" semantics. So I have these two templates:
template eq(alias pred) {
alias eq = pred;
}