On 12/12/2011 12:19 PM, Jonathan Wakely wrote:
As regards the wider issue which is being discussed on the reflector -
beware, I didn't follow all the messages - 'final' disabling a nice
optimization like EBO makes me very nervous. Really, doesn't seem part
of the intended general philosophy in this area. There must be a way to
overcome the annoyance. Last resort, if suggestions like having 'final'
not forbidding private derivation cannot go through, we could imagine a
GCC attribute reverting the effect of 'final' for people (library
writers ;) knowing what they are doing. I don't know.
I think being able to detect a final class is good enough for now,
until we find out if there are real problems being encountered as
people make more use of C++11.
Maybe. But in my opinion we should not rush. Something is wrong here at
a more fundamental level.
Paolo.