Skip to content

Commit b573b9d

Browse files
committed
Add requires clause for lambda_wrapper
1 parent 4c87da8 commit b573b9d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/cpp2util.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,9 @@ auto is( X const& x ) -> bool {
638638
}
639639

640640
template <typename F, typename Capture = std::monostate>
641+
requires (
642+
requires { &F::operator(); }
643+
)
641644
struct lambda_wrapper {
642645
F f;
643646
Capture capture;

0 commit comments

Comments
 (0)