Understanding Safety of Function Pointers vs. Addresses of Functions

jmh530 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 14 07:02:44 PDT 2015


On Tuesday, 14 July 2015 at 12:12:41 UTC, anonymous wrote:
>
> Works for me. Please show the complete code and the error 
> message you get.
>
> Here's what works for me:


Thanks for posting that. I figured out the issue. Before you had 
recommended that I use
alias cos = std.math.cos;
I had kept that text in. When I removed it, everything worked 
just fine. I'm still not sure I grasp the subtleties of alias 
when used with templates.


More information about the Digitalmars-d-learn mailing list