diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-28 03:44:47 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-28 04:05:05 +0200 |
commit | 37215facfcecb3a4133a740d7fda57c0ef564395 (patch) | |
tree | 22e4da3a44314c75977438e9b65eeb9b6e452ded /entity/concepts.hpp | |
parent | b8a295f01dbb82e19dce92fd3a2048d98554eb75 (diff) |
w
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 }; }; |