What about
auto g() -> auto { return 0.0; }
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.
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.