On Mon, Apr 20, 2015 at 5:52 PM, Columbo
<r....@gmx.net> wrote:
Is there an objective reason that
virtual void f() = 0 {};
virtual void g() = 0 = default;
I don’t understand what you would expect these definitions to do. To me, the ‘= 0’ indicating the functions are pure virtual and thus have no body, conflict with the {} or =default parts, which state otherwise. Please could you elaborate.
should not be allowed? Is it possible to alter the definition of function-definition to allow pure-specifiers? It seems to me that parsers are fine with it,
and it's a hassle to define pure virtual destructors outside a class or class template. The changes necessary seem rather straightforward:
Change the grammar and make one or two semantical paragraphs (i.e. forbidding the use of pure-specifiers for anything but in-class virtual member function definitions).
--
---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposal...@isocpp.org.
To post to this group, send email to std-pr...@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.