aboutsummaryrefslogtreecommitdiff
path: root/ttwhy/routers/concepts.cppm
diff options
context:
space:
mode:
Diffstat (limited to 'ttwhy/routers/concepts.cppm')
-rw-r--r--ttwhy/routers/concepts.cppm7
1 files changed, 2 insertions, 5 deletions
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<typename Candidate>
- concept router = requires(Candidate candidate, scanners::input_event event) {
- typename Candidate::terminal_policy;
+ export template<typename Candidate, typename Event>
+ concept router = requires(Candidate candidate, Event event) {
{ candidate.process(event) } -> std::same_as<asio::awaitable<void>>;
};