Boost logo

Boost :

From: Daniel Frey (daniel.frey_at_[hidden])
Date: 2002-02-13 10:28:35

Carl Daniel wrote:
> From: "Daniel Frey" <daniel.frey_at_[hidden]>
> I've wanted 'final' before, but for a reason this doesn't address: optimization. Within a 'final' class, the compiler
> can statically bind all virtual member function references, since it's knows that there can be no more-derived class
> that it doesn't know about.
> That, unfortunately, doesn't appear to have a solution without a language extension or very sophisticated whole-program
> optimization.

As you said, this IMHO cannot be addressed without a real keyword and
support from the compiler. But compilers try to find out these things
anyway. I don't know whether my class-template can be used by some
clever compilers as a hint for this kind of optimization but I doubt

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_at_[hidden], web:

Boost list run by bdawes at, gregod at, cpdaniel at, john at