Commit 4df3fec 1 parent 1c5aa45 commit 4df3fec Copy full SHA for 4df3fec
File tree 1 file changed +6
-3
lines changed
lib/include/elements/element
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 12
12
13
13
namespace cycfi ::elements
14
14
{
15
+ // //////////////////////////////////////////////////////////////////////////
16
+ // TMP code makes `indirect_receiver` derive from `receiver_base` if the
17
+ // Element derives from `receiver_base`, and implements the `value` getter
18
+ // and setter member functions.
19
+ // //////////////////////////////////////////////////////////////////////////
15
20
template <typename Indirect, concepts::Element Element>
16
21
struct indirect_receiver {};
17
22
18
23
template <typename Indirect, concepts::Element Element>
19
- requires requires (Element e) {
20
- { e } -> std::derived_from<receiver_base>;
21
- }
24
+ requires std::is_base_of_v<receiver_base, std::decay_t <Element>>
22
25
struct indirect_receiver <Indirect, Element> : receiver_base
23
26
{
24
27
using receiver_type = typename Element::receiver_type;
You can’t perform that action at this time.
0 commit comments