diff options
Diffstat (limited to 'entity/concepts.hpp')
-rw-r--r-- | entity/concepts.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/entity/concepts.hpp b/entity/concepts.hpp index 871f6bbe..5e01fcda 100644 --- a/entity/concepts.hpp +++ b/entity/concepts.hpp @@ -38,6 +38,7 @@ template<typename F, typename T, typename FieldType> concept FieldWriter_ptr = requires(T& x, move_qualified<FieldType> value, F f) { requires std::is_reference_v<decltype(x.*f)>; requires !std::is_const_v<std::remove_reference_t<decltype(x.*f)>>; + { x.*f } -> std::convertible_to<FieldType&>; { x.*f = value }; }; |