Giter Site home page Giter Site logo

Comments (12)

andrew-gresyk avatar andrew-gresyk commented on May 17, 2024 1

Do you have an example I can look at?
Also, which compiler are you on?

from hfsm2.

DonMathi avatar DonMathi commented on May 17, 2024 1

Yes, that solves the issue

from hfsm2.

DonMathi avatar DonMathi commented on May 17, 2024

I have somthing like this: M=Machine, H=Head, S=State, O=Orthogonal, C=Composite

M(H,
S,
O[H,
    C{H,
        S,
        S,
        O[H,
            C{H,S,S},
            C{H,S,S,S}
        ]
    },
    C{H,
        S,
        C{H,S,S},
        C{H,S,S},
        C{H,S,S},
        S
    }
],
S
)

from hfsm2.

andrew-gresyk avatar andrew-gresyk commented on May 17, 2024

Hi Kjeld,
Looks like a bug, looking into that.

from hfsm2.

andrew-gresyk avatar andrew-gresyk commented on May 17, 2024

Fixed in Beta 7.3

from hfsm2.

DonMathi avatar DonMathi commented on May 17, 2024

Great, thank you

from hfsm2.

DonMathi avatar DonMathi commented on May 17, 2024

I still had some issues, but now I also #include <memory>, this helps.
Do you require some extra libs, that are not included in your machine.hpp file?

from hfsm2.

andrew-gresyk avatar andrew-gresyk commented on May 17, 2024

Nope, HFSM doesn't have any other dependencies.
Are you saying you needed to #include <memory> to fix an HFSM2 build issue?

from hfsm2.

DonMathi avatar DonMathi commented on May 17, 2024

Yes. Without it complains about new for many different things inside hfsm2.
Maybe #include <memory> is not the direct needed dependency, but it solves the problem

from hfsm2.

DonMathi avatar DonMathi commented on May 17, 2024

MinGW64 version 8.1.0
Issue at line 577 in your machine.hpp

error: no matching function for call to 'operator new(sizetype, hfsm2::detail::Array<hfsm2::detail::RequestT<hfsm2::EmptyPayload>, 8>::Item*)'

  new (&_items[_count]) Item{std::move(value)};
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

from hfsm2.

andrew-gresyk avatar andrew-gresyk commented on May 17, 2024

Interesting.
Do any of the bundled examples compile on your platform?

from hfsm2.

andrew-gresyk avatar andrew-gresyk commented on May 17, 2024

Added #include <new> for all platforms.
Let me know if this fixes the issue.

from hfsm2.

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.