I'm still not sure why I'm getting the error I mention in the original post. For instance, the code below is giving that Error 42 Symbol Undefined error. Seems very mystifying...

import std.math : cos;

real foo(T)(T fp, real x)
{
        return fp(x);
}

void main()
{
        real x = 0;
        real y = foo(&cos, x);
}

Reply via email to