Category : automata

Here’s a hello world example for boost sml C++ library from here: https://boost-ext.github.io/sml/examples.html#hello-world // $CXX -std=c++14 hello_world.cpp #include <boost/sml.hpp> #include <cassert> namespace sml = boost::sml; namespace { struct release {}; struct ack {}; struct fin {}; struct timeout {}; const auto is_ack_valid = [](const ack&) { return true; }; const auto is_fin_valid = [](const fin&) ..

Read more