On Wednesday, 8 July 2015 at 18:31:00 UTC, Steven Schveighoffer wrote:
You can use a function lambda:

auto fp = (real a) => cos(a);

Note, I had to put (real a) even though I would have expected "a => cos(a)" to work.

-Steve

Interesting. You have to put real because there is also a float and double version of cos.

Reply via email to