Hacker News new | ask | show | jobs
by maccard 143 days ago
What about

auto g() -> auto { return 0.0; }

1 comments

0.0 is a double, so I would assume the return type of g is deduced to be double, if that is what you're asking.
I was more pointing out that the syntax was dumb for that particular example!