summaryrefslogtreecommitdiffhomepage
path: root/entity/metadata.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'entity/metadata.hpp')
-rw-r--r--entity/metadata.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/entity/metadata.hpp b/entity/metadata.hpp
index a35e0cc6..dc7d9f1d 100644
--- a/entity/metadata.hpp
+++ b/entity/metadata.hpp
@@ -211,10 +211,10 @@ constexpr erased_accessor entity_field<Obj, Type, R, W, P>::erased() const
return erased_accessor {
(void*)&reader, writer ? (void*)&writer : nullptr,
- std::is_same_v<P, std::nullptr_t> ? (const void*)&predicate : nullptr,
+ !std::is_same_v<P, std::nullptr_t> ? (const void*)&predicate : nullptr,
name, obj_name, field_name,
reader_fn, writer ? writer_fn : writer_stub_fn,
- std::is_same_v<P, std::nullptr_t> ? predicate_fn : predicate_stub_fn,
+ !std::is_same_v<P, std::nullptr_t> ? predicate_fn : predicate_stub_fn,
};
}