diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-14 08:53:35 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-14 09:22:54 +0200 |
commit | 9d35200ea54a0729d489dc2c76823a2a13cdcac4 (patch) | |
tree | afe10e017dcc226750c0023d0787df912927e6cd /compat/base-of.hpp | |
parent | c8ae1f808a16d664ec229ca3a2237ac39bf1164d (diff) |
add find_object specialization for scenery subtypes
Diffstat (limited to 'compat/base-of.hpp')
-rw-r--r-- | compat/base-of.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compat/base-of.hpp b/compat/base-of.hpp new file mode 100644 index 00000000..d5f539d5 --- /dev/null +++ b/compat/base-of.hpp @@ -0,0 +1,8 @@ +#pragma once + +namespace floormat { + +template<typename Base, typename Derived> +constexpr inline bool is_strict_base_of = std::is_base_of_v<Base, Derived> && !std::is_same_v<Base, Derived>; + +} // namespace floormat |