Is void{} legal?

102 views
Skip to first unread message

michel...@gmail.com

unread,
Sep 6, 2016, 4:03:50 PM9/6/16
to ISO C++ Standard - Discussion
I'll refer to the following question on SO:

http://stackoverflow.com/questions/39354065/is-void-legal-or-not

It pointed out that the working draft mentions void{} in dcl.type.auto.deduct.
It appears to be an issue, for void{} is not a legal expression.
It should probably changed to void and that's all.

Am I right? Otherwise, what's wrong in my reasoning?

Thank you.

Richard Smith

unread,
Sep 6, 2016, 5:05:16 PM9/6/16
to std-dis...@isocpp.org
Yes, this is a wording bug; I've fixed it to say 'void()' instead:


Thanks for reporting this!


--

---
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-discussion+unsubscribe@isocpp.org.
To post to this group, send email to std-dis...@isocpp.org.
Visit this group at https://groups.google.com/a/isocpp.org/group/std-discussion/.

Reply all
Reply to author
Forward
0 new messages