|
Monado OpenXR Runtime
|
Shared type traits for glue classes. More...
#include <type_traits>
Go to the source code of this file.
Variables | |
| template<class Base , class Derived , class = void> | |
| constexpr bool | xrt::util::is_non_virtual_base_v = false |
True when Base is an accessible, non-virtual base of Derived, that is a Base * can be static_cast down to Derived *. | |
Shared type traits for glue classes.
|
inlineconstexpr |
True when Base is an accessible, non-virtual base of Derived, that is a Base * can be static_cast down to Derived *.
That cast is ill-formed for a virtual base, so this is false for virtual inheritance. The glue wrappers use it to reject virtual inheritance of the glue base, which would break pointer recovery.