diff options
Diffstat (limited to 'entity/accessor.hpp')
| -rw-r--r-- | entity/accessor.hpp | 6 |
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> |
