[En-Nut-Discussion] Optimizing nutconf
Ole Reinhardt
ole.reinhardt at embedded-it.de
Tue Jan 13 22:08:55 CET 2009
Hi,
> > Thiago added an abstract class, which simplifies the code for scanning
> > directories. Unfortunately
> >
> > g++ (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
> >
> > doesn't aacept line 723 of nutconfdoc.cpp:
> >
> > virtual ~CAbstractDirCopyTraverser() = 0
> > {
> > }
> >
> > IMHO it is not allowed to have both, a pure-specifier and the
> > definition. Although, the MS compiler accepted that statement. Do we
> > need the declaration of the destructor at all?
>
> Actually, destructors are a speciall case in pure virtual syntax, they
> must always have a body, and since the compiler won't generate one if
> you declare it, you must provide one. Probably the compiler has a bug
> with the inline body.
> [...]
> So, it's quite safe to remove it. :)
So, I commented out the destructor again in CVS head as compilation
fails on linux otherwise. We could add it again not defined as inline
body.
Bye,
Ole
--
_____________________________________________________________
| |
| Embedded-IT Hard- und Softwarelösungen |
| |
| Ole Reinhardt Tel. / Fax: +49 (0)271 7420433 |
| Luisenstraße 29 Mobil: +49 (0)177 7420433 |
| 57076 Siegen eMail: ole.reinhardt at embedded-it.de |
| Germany Web: http://www.embedded-it.de |
| UstID / VAT: DE198944716 |
|_____________________________________________________________|
More information about the En-Nut-Discussion
mailing list