Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2004-03-28 10:43:04


"Gennaro Prota" <gennaro_prota_at_[hidden]> wrote in

> >> So is it possible to prevent derivation?
>
> >http://www.research.att.com/~bs/bs_faq2.html#no-derivation
>
> And where is derivation prevented? ;) That only gives an error when
> you try instantiating the derived class. (Not only you may still
> derive, but of course you can access and use any static members).
>
Well, that's the closest legal way to get functionality of 'final'.

AFAIK no such feature is planned even for C++0x.

/Pavel


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk