Is there a way to tell if an auto ref parameter is by ref or by value?
NaN
divide at by.zero
Sun May 10 00:33:07 UTC 2020
Ie something like..
auto Foo(T)(auto ref T x)
{
static if (isByRef(x))
{
}
else
{
}
}
More information about the Digitalmars-d-learn
mailing list