Topic: Defect Report: incomplete specification in 10.4/2 when a pure virtual
Author: Daniel Frey <daniel.frey@aixigo.de>
Date: 29 Nov 02 15:27:22 GMT Raw View
Hi,
I posted a defect report two weeks ago, but meanwhile I noticed that the
suggested "solution" is still incomplete. Here's the refined version:
in clause 10.4 [class.abstract] paragraph 2, it reads:
"A pure virtual function need be defined only if explicitly called with
the qualified-id syntax (5.1 [expr.prim])."
This is IMHO incomplete. A dtor is a function (well, a "special member
function", but this also makes it a function, right?) but it is called
implicitly and thus without a qualified-id syntax. Another alternative
is that the pure virtual function is called directly or indirectly from
the ctor. Thus the above sentence which specifies when a pure virtual
function need be defined ("...only if...") needs to be extended:
"A pure virtual function need be defined only if explicitly called with
the qualified-id syntax (5.1 [expr.prim]) or if implicitly called (12.4
[class.dtor] or 12.7 [class.cdtor])."
Regards, Daniel
--
Daniel Frey
aixigo AG - financial training, research and technology
SchloC -Rahe-Stra_e 15, 52072 Aachen, Germany
fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99
eMail: daniel.frey@aixigo.de, web: http://www.aixigo.de
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]
Author: Daniel Frey <daniel.frey@aixigo.de>
Date: 14 Nov 02 14:00:03 GMT Raw View
Hi,
in clause 10.4 [class.abstract] paragraph 2, it reads:
"A pure virtual function need be defined only if explicitly called with
the qualified-id syntax (5.1 [expr.prim])."
This is IMHO incomplete as a dtor is a function (well, a "special member
function", but this also makes it a function, right?) but it is called
implicitly and thus without a qualified-id syntax. Thus the above
sentence needs an extension, maybe:
"A pure virtual function need be defined only if explicitly called with
the qualified-id syntax (5.1 [expr.prim]) or if implicitly called (12.4
[class.dtor])."
Regards, Daniel
--
Daniel Frey
aixigo AG - financial training, research and technology
Schlo -Rahe-Stra e 15, 52072 Aachen, Germany
fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99
eMail: daniel.frey@aixigo.de, web: http://www.aixigo.de
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]