Boost logo

Boost :

From: Carl Daniel (cpdaniel_at_[hidden])
Date: 2002-02-13 10:09:35

From: "Daniel Frey" <daniel.frey_at_[hidden]>

>Hello, world!
>I searched the messages of the boost-group but couldn't find any
>reference to 'final'. If it was discussed before, please gently point me
>to the right message :)
>By 'final', I mean a way to mark a class 'final' like in Java to prevent
>others from deriving from that class. A simple solution of this is
>something like this:

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


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