Giter Site home page Giter Site logo

Comments (4)

Ulenspiegel avatar Ulenspiegel commented on May 22, 2024 1

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.

krzysztof-jusiak avatar krzysztof-jusiak commented on May 22, 2024 1

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.

Ulenspiegel avatar Ulenspiegel commented on May 22, 2024

That's just splendid; thank you for clearing things out. :) And for the library - a godsend, especially for constrained systems.

from sml.

krzysztof-jusiak avatar krzysztof-jusiak commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.