Comments (4)
Could it be done in a possibly optional manner that won't enforce exception support as requirement? Right now the library is about the only one useful on small embedded systems (where -fno-exceptions
is often used). Would be a shame to drop that.
from sml.
Actually, exception handling is done already The only thing related to this issue which is left is the relation between which state should be active when exception is thrown., so, no worries @Ulenspiegel, exceptions are only supported in case when they are enabled. In case of '-fnoexceptions' exception handling code is ignored. For me, it's really important to keep msm 'lite' and as easy to use as possible on embedded systems.
Example
"state1"_s + exception<std::out_of_range> [guard] / action = "s2"_s
Thank you @Ulenspiegel for a valid point though.
from sml.
That's just splendid; thank you for clearing things out. :) And for the library - a godsend, especially for constrained systems.
from sml.
This one is working as expected. Tests here -> https://github.com/boost-experimental/msm-lite/blob/master/test/ft/ft_exceptions.cpp. Closing it.
from sml.
Related Issues (20)
- Version number not updated before release HOT 1
- Question: Moore or Mealy state machine?
- Where have all the sources gone..? HOT 1
- Template error when using unused event in ` sml::back::process<>` in action.
- Cannot get access to state objects in log_state_change
- Dispatching events in separate thread spawned from action?
- Cannot get dependency if dependency is not used in parameter of function in make_transition_table
- Windows compile error HOT 1
- Deferred event only defers once HOT 1
- Directed entry to specific sub-state of nested machine HOT 4
- How to achieve shallow history behavior? HOT 1
- dependency injection through process_event() to save sm memory footprint HOT 2
- [Question] Can you know upfront if an event can be processed?
- What's the actual point of this all? HOT 9
- sm.is("state"_s) suddenly doesn't compile anymore HOT 5
- How to store a "dispatch table" in a class? HOT 1
- sml::aux::get_type_name<TAction>() not returning name of lambda function HOT 2
- Compilation error when using logger, process_queue and member function action HOT 1
- how to know weather state is a sub-state machine or a normal state HOT 1
- How to make a state transition that changes to the next state upon completion of its action?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sml.