Skip to content

Commit 1c5aa45

Browse files
committed
refinement
1 parent e80db32 commit 1c5aa45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/include/elements/element/indirect.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ namespace cycfi::elements
1616
struct indirect_receiver {};
1717

1818
template <typename Indirect, concepts::Element Element>
19-
requires requires() {
20-
typename std::enable_if_t<std::is_base_of_v<receiver_base, Element>>;
19+
requires requires(Element e) {
20+
{ e } -> std::derived_from<receiver_base>;
2121
}
2222
struct indirect_receiver<Indirect, Element> : receiver_base
2323
{

0 commit comments

Comments
 (0)