From 22f6534081acfabdab4956d337604a21e7da5b64 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Tue, 22 Sep 2026 18:56:44 +0200 Subject: lib: generalize concepts --- ttwhy/routers/concepts.cppm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'ttwhy/routers/concepts.cppm') diff --git a/ttwhy/routers/concepts.cppm b/ttwhy/routers/concepts.cppm index 9660afc..cfbcb5a 100644 --- a/ttwhy/routers/concepts.cppm +++ b/ttwhy/routers/concepts.cppm @@ -6,14 +6,11 @@ module; export module ttwhy.routers:concepts; -import ttwhy.scanners; - namespace ttwhy { - export template - concept router = requires(Candidate candidate, scanners::input_event event) { - typename Candidate::terminal_policy; + export template + concept router = requires(Candidate candidate, Event event) { { candidate.process(event) } -> std::same_as>; }; -- cgit v1.2.3