From 9d35200ea54a0729d489dc2c76823a2a13cdcac4 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 14 Apr 2024 08:53:35 +0200 Subject: add find_object specialization for scenery subtypes --- compat/base-of.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 compat/base-of.hpp (limited to 'compat') 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 +constexpr inline bool is_strict_base_of = std::is_base_of_v && !std::is_same_v; + +} // namespace floormat -- cgit v1.2.3