I think it should be the same as
auto f();
auto f() { return 0; }
That is, the declarations are valid and match each other as long as their placeholders have the same form, though in general the standard seems quite unclear on the validity of redeclarations that involves placeholder types.
________________________________________
From: xskxzr <
xsk...@gmail.com>
Sent: Saturday, January 6, 2018 4:05:10 AM
To: ISO C++ Standard - Discussion
Subject: [std-discussion] What if the type of an entity with an undeduced placeholder type is needed?
Hi all,
,
[dcl.spec.auto]/9<
http://www.eel.is/c++draft/dcl.spec.auto#9> specifies the case where the type of an entity with an undeduced placeholder type is needed to determine the type of an expression, but what about other cases?
--
---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
std-discussio...@isocpp.org<mailto:
std-discussio...@isocpp.org>.
To post to this group, send email to
std-dis...@isocpp.org<mailto:
std-dis...@isocpp.org>.
Visit this group at
https://groups.google.com/a/isocpp.org/group/std-discussion/.