void main()
{
foo!a(); // const(int)
foo!b(); // immutable(int)
foo!c(); // const(int)
}
Ok, so one has to use a wrapper and then "catch" the result with auto?
auto x = foo!f();
Ola Fosheim Grøstad via Digitalmars-d-learn Wed, 04 Dec 2019 16:10:59 -0800
void main()
{
foo!a(); // const(int)
foo!b(); // immutable(int)
foo!c(); // const(int)
}
Ok, so one has to use a wrapper and then "catch" the result with auto?
auto x = foo!f();