Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
boost/sml.hpp
✓ #include <boost/sml.hpp>
Define a simple state machine with transitions
#include <boost/sml.hpp>
#include <iostream>
namespace sml = boost::sml;
struct idle {};
struct running {};
struct MyMachine {
auto operator()() const {
using namespace sml;
return make_transition(
state<idle> + event<running> / [] { std::cout << "start"; },
state<running>
);
}
};
int main() {
sml::sm<MyMachine> sm;
sm.process_event(running{});
return 0;
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.