Giter Site home page Giter Site logo

dsml's Issues

Compilation error on Windows VS2019

While compiling this code

        struct MonsterMachine
        {
            STATE(NavigatingToPlayer);
            STATE(StayingCloseToPlayer);

            EVENT(AgentConfigured);
            EVENT(CloseToPlayer);
            EVENT(FarAwayFromPlayer);

            static void ActionStayNearPlayer(MonsterComponent& monsterComponent);
            static void ActionNavigateToPlayer(MonsterComponent& monsterComponent);

            auto operator()() const noexcept
            {
                using dsml::callee;
                using namespace dsml::literals;
                using namespace dsml::operators;

                return dsml::make_transition_table(
                    dsml::initial_state + AgentConfigured = NavigatingToPlayer,
                    StayingCloseToPlayer + FarAwayFromPlayer = NavigatingToPlayer,
                    NavigatingToPlayer + CloseToPlayer = StayingCloseToPlayer,

                    NavigatingToPlayer + dsml::on_entry / callee(&ActionNavigateToPlayer),
                    StayingCloseToPlayer + dsml::on_entry / callee(&ActionStayNearPlayer)
                );
            }
        };

I am seeing the following compile error.

8>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\type_traits(34,73): error C3786: the second template argument to 'std::make_integer_sequence' must be an integer constant greater than or equal to zero
8>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\type_traits(34,73): error C3786: using make_integer_sequence = __make_integer_seq<integer_sequence, _Ty, _Size>;
8>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\type_traits(34,73): error C3786:                                                                         ^
8>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\type_traits(34): message : see reference to alias template instantiation '__make_integer_seq<std::integer_sequence,size_t,18446744073709551614>' being compiled
8>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\type_traits(34): message : using make_integer_sequence = __make_integer_seq<integer_sequence, _Ty, _Size>;
8>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\type_traits(40): message : see reference to alias template instantiation 'std::make_integer_sequence<size_t,18446744073709551614>' being compiled
8>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\type_traits(40): message : using make_index_sequence = make_integer_sequence<size_t, _Size>;
... External/dsml.hpp(1669): message : see reference to alias template instantiation 'std::make_index_sequence<18446744073709551614>' being compiled
... External/dsml.hpp(1669): message :   using seq_t = std::make_index_sequence<sizeof(__FUNCSIG__) - 33 - 8>;
8>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\type_traits(34,1): error C2938: '__make_integer_seq<std::integer_sequence,size_t,18446744073709551614>' : Failed to specialize alias template
8>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\type_traits(34,1): error C2938: using make_integer_sequence = __make_integer_seq<integer_sequence, _Ty, _Size>;
8>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\type_traits(34,1): error C2938: ^

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.