Topic: virtual ^foo() = 0 {}; legal? (was: Interfaces and C++)
Author: girod@dshp01.trs.ntc.nokia.com (Marc Girod)
Date: 1996/09/10 Raw View
>>>>> "HS" == Herb Sutter <herbs@cntc.com> writes:
HS> class foo
HS> {
[...]
HS> virtual ~foo() = 0 {}; // out of habit, good style
HS> };
I didn't get an answer to my question yet: Is this legal?
...given that I know that the following equivalent is legal:
virtual inline ~foo() = 0;
};
foo::~foo() {}
Any taker?
Best Regards!
--
Marc Girod Phone: +358-0-511 27703
Nokia Telecommunications P.O. Box 12 Fax: +358-0-511 27432
Kilo RD 4 FIN-02611 Espoo marc.girod@ntc.nokia.com
[ 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 ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]