C++ Logo

std-proposals

Advanced search

Re: Conditional final class-virt-specifier

From: Thiago Macieira <thiago_at_[hidden]>
Date: Wed, 15 Jul 2020 09:30:13 -0700
On Wednesday, 15 July 2020 08:02:54 PDT Arthur O'Dwyer via Std-Proposals
wrote:
> the keyword doesn't really *do* anything except documentation

It could allow the compiler to devirtualise function calls, since a pointer to
a final class can only point to an object of that particular class.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel System Software Products

Received on 2020-07-15 11:33:32