summaryrefslogtreecommitdiffhomepage
path: root/entity/accessor.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-02-23 17:22:32 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-02-23 17:22:32 +0100
commitecacc4e197eb8da6c311dad6e37330bcbbfef86e (patch)
tree4e9d6f70b93d2e53aa948eac6cd0aceff11f1fc5 /entity/accessor.hpp
parent25e36ab269096f11ebb2a1c9f6cc3ab93f830b44 (diff)
wip
Diffstat (limited to 'entity/accessor.hpp')
-rw-r--r--entity/accessor.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/entity/accessor.hpp b/entity/accessor.hpp
index 84c599c2..cc777e5d 100644
--- a/entity/accessor.hpp
+++ b/entity/accessor.hpp
@@ -69,7 +69,7 @@ struct erased_accessor final {
[[nodiscard]] constexpr bool check_name() const noexcept;
template<typename FieldType>
- [[nodiscard]] constexpr bool check_field_name() const noexcept;
+ [[nodiscard]] constexpr bool check_field_type() const noexcept;
template<typename Obj>
constexpr void do_asserts() const;
@@ -114,10 +114,10 @@ constexpr bool erased_accessor::check_name() const noexcept
}
template<typename FieldType>
-constexpr bool erased_accessor::check_field_name() const noexcept
+constexpr bool erased_accessor::check_field_type() const noexcept
{
constexpr auto name = name_of<FieldType>;
- return field_name == name;
+ return field_type == name;
}
template<typename Obj, typename FieldType>