Template constraints for reference/value types?
Jon Degenhardt via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Sep 6 13:46:54 PDT 2016
Is there a way to constrain template arguments to reference or
value types? I'd like to do something like:
T foo(T)(T x)
if (isReferenceType!T)
{ ... }
--Jon
More information about the Digitalmars-d-learn
mailing list