C++ Logo

std-proposals

Advanced search

Re: New "static_virtual" keyword

From: Phil Bouchard <boost_at_[hidden]>
Date: Thu, 18 Mar 2021 11:48:17 -0400
On 3/18/21 4:54 AM, Andrey Semashev via Std-Proposals wrote:
> On 3/18/21 3:58 AM, Phil Bouchard via Std-Proposals wrote:
>>
>> On 3/17/21 8:49 PM, Andrey Semashev via Std-Proposals wrote:
>>>
>>> The C++ language does not define such a thing. In real world,
>>> whether there will be a virtual function table or not depends on the
>>> compiler and its optimization capabilities.
>>>
>>> What's the difference in terms of the C++ language?
>>
>> It's not a new fundamental feature, it's just an idea to get cleaner,
>> safer and less error messages.
>
> I don't see how any of that is achieved. In fact, I still don't
> understand what that new keyword is supposed to do.

The idea is to require a class with a predetermined set of member
functions for a specific function call. But this can be achieved with
Concepts already apparently.


-- 
*Phil Bouchard*
Founder
C.: (819) 328-4743
Fornux Logo <http://www.fornux.com>

Received on 2021-03-18 10:48:26