Open fiesh opened 2 years ago
const Interrupted &src
vs Interrupted &src
const auto printIdGuard = [](auto const &event, Interrupted &src) {
std::cout << event.id << ' ' << src.id << '\n';
return true;
};
Output:
127.0.0.1:1024
127.0.0.1:1024
1025 1024
127.0.0.1:1025
127.0.0.1:1025
Wow, that's very surprising.
Maybe this has already been brought up -- I couldn't find anything.
Consider this slightly altered example (
printIdGuard
added as function and guard in transition table, nothing else changd) from the data section:I'd expect
printIdGuard
to output1025 1024
, not1025 0
. This really got me pretty good...