C++ Logo

std-proposals

Advanced search

[std-proposals] std::any::base

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Mon, 15 Apr 2024 11:45:36 +0100
In the previous two threads entitled:

    "Extend std::type_info with more information"
    "Use the exception system to check for bases at runtime"

People were not much interested in extending "std::type_info", but
rather were particularly interested in adding a new member function to
"std::any".

Here's the beginnings of a paper for std::any::base:

    http://www.virjacode.com/papers/any_base.htm

The implementations are provided in the paper purely just to show that
it's possible without an ABI break. Compiler vendors will implement
it much more efficiently.

Received on 2024-04-15 10:45:49