diff options
Diffstat (limited to 'compat')
-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 |