On Sunday, 10 May 2020 at 00:33:07 UTC, NaN wrote:
Ie something like..auto Foo(T)(auto ref T x) { static if (isByRef(x)) { } else { } }
__traits(isRef, x)
Anonymouse via Digitalmars-d-learn Sat, 09 May 2020 18:21:17 -0700
On Sunday, 10 May 2020 at 00:33:07 UTC, NaN wrote:
Ie something like..auto Foo(T)(auto ref T x) { static if (isByRef(x)) { } else { } }
__traits(isRef, x)