Author
anonymous
over 6 years ago
Language
C++
Compiler
clang 6.0.0
Options
Warnings
Boost 1.67.0
MessagePack
C++17(GNU)
no pedantic
Author
anonymous
over 6 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/clang-6.0.0/include -I/opt/wandbox/msgpack/include -std=gnu++17
In file included from prog.cc:2:
./myfsm.h:68:59: error: unknown type name 'GuardSS'; did you mean 'State2_::GuardSS'?
msmf::Row < State2, Event21, State1, msmf::none, GuardSS/*msmf::none*/ >
^~~~~~~
State2_::GuardSS
./myfsm.h:38:16: note: 'State2_::GuardSS' declared here
struct GuardSS {
^
./myfsm.h:42:25: error: no member named 'm_guardVal' in 'boost::msm::back::state_machine<MyFsm_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>'
if (fsm.m_guardVal == true){
~~~ ^
/opt/wandbox/boost-1.67.0/clang-6.0.0/include/boost/msm/front/functor_row.hpp:126:20: note: in instantiation of function template specialization 'MyFsm_::State2_::GuardSS::operator()<Event21, boost::msm::back::state_machine<MyFsm_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>, boost::msm::back::state_machine<MyFsm_::State2_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>, MyFsm_::State1>' requested here
return Guard()(evt,fsm,src,tgt);
^
/opt/wandbox/boost-1.67.0/clang-6.0.0/include/boost/msm/back/state_machine.hpp:511:23: note: in instantiation of function template specialization 'boost::msm::front::Row<boost::msm::back::state_machine<MyFsm_::State2_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>, Event21, MyFsm_::State1, boost::msm::front::none, MyFsm_::State2_::GuardSS>::guard_call<Event21, boost::msm::back::state_machine<MyFsm_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>, boost::msm::back::state_machine<MyFsm_::State2_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>, MyFsm_::State1, boost::fusion::set<boost::msm::back::state_machine<MyFsm_::State2_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>, MyFsm_::State1> >' requested here
if ( ROW::guard_call(fsm,evt,
^
/opt/wandbox/boost-1.67.0/clang-6.0.0/include/boost/msm/back/state_machine.hpp:530:18: note: in instantiation of member function 'boost::msm::back::state_machine<MyFsm_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>::g_row_<boost::msm::front::Row<boost::msm::back::state_machine<MyFsm_::State2_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>, Event21, MyFsm_::State1, boost::msm::front::none, MyFsm_::State2_::GuardSS> >::check_guard' requested here
if (!check_guard(fsm,evt))
^
/opt/wandbox/boost-1.67.0/clang-6.0.0/include/boost/msm/back/dispatch_table.hpp:179:77: note: in instantiation of member function 'boost::msm::back::state_machine<MyFsm_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>::g_row_<boost::msm::front::Row<boost::msm::back::state_machine<MyFsm_::State2_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>, Event21, MyFsm_::State1, boost::msm::front::none, MyFsm_::State2_::GuardSS> >::execute' requested here
self->entries[state_id+1] = reinterpret_cast<cell>(&Transition::execute);
^
/opt/wandbox/boost-1.67.0/clang-6.0.0/include/boost/msm/back/dispatch_table.hpp:245:13: note: in instantiation of function template specialization 'boost::msm::back::dispatch_table<boost::msm::back::state_machine<MyFsm_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>, boost::mpl::v_item<boost::msm::back::state_machine<MyFsm_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>::_row_<boost::msm::front::Row<MyFsm_::State1, Event12, boost::msm::back::state_machine<MyFsm_::State2_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>, boost::msm::front::none, boost::msm::front::none> >, boost::mpl::v_item<boost::msm::back::state_machine<MyFsm_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>::g_row_<boost::msm::front::Row<boost::msm::back::state_machine<MyFsm_::State2_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>, Event21, MyFsm_::State1, boost::msm::front::none, MyFsm_::State2_::GuardSS> >, boost::mpl::v_item<boost::msm::back::state_machine<MyFsm_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>::frow<boost::msm::back::state_machine<MyFsm_::State2_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>, Event_ss21>, boost::mpl::v_item<boost::msm::back::state_machine<MyFsm_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>::frow<boost::msm::back::state_machine<MyFsm_::State2_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>, Event_ss12>, boost::mpl::vector0<mpl_::na>, 1>, 1>, 1>, 1>, Event21, boost::msm::back::favor_runtime_speed>::init_cell::init_event_base_case<boost::msm::back::state_machine<MyFsm_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>::g_row_<boost::msm::front::Row<boost::msm::back::state_machine<MyFsm_::State2_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>, Event21, MyFsm_::State1, boost::msm::front::none, MyFsm_::State2_::GuardSS> > >' requested here
init_event_base_case(tr,
^
/opt/wandbox/boost-1.67.0/clang-6.0.0/include/boost/mpl/for_each.hpp:78:9: note: (skipping 6 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
aux::unwrap(f, 0)(boost::get(x));
^
/opt/wandbox/boost-1.67.0/clang-6.0.0/include/boost/msm/back/state_machine.hpp:2026:16: note: in instantiation of function template specialization 'boost::msm::back::state_machine<MyFsm_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>::region_processing_helper<MyFsm_, void>::process<Event21>' requested here
helper.process(evt);
^
/opt/wandbox/boost-1.67.0/clang-6.0.0/include/boost/msm/back/state_machine.hpp:1768:26: note: in instantiation of function template specialization 'boost::msm::back::state_machine<MyFsm_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>::do_process_event<Event21>' requested here
return this->do_process_event(evt,is_direct_call);
^
/opt/wandbox/boost-1.67.0/clang-6.0.0/include/boost/msm/back/state_machine.hpp:1997:41: note: in instantiation of function template specialization 'boost::msm::back::state_machine<MyFsm_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>::do_process_helper<Event21, Event21>' requested here
HandledEnum handled = this->do_process_helper<Event>
^
/opt/wandbox/boost-1.67.0/clang-6.0.0/include/boost/msm/back/state_machine.hpp:1264:16: note: in instantiation of function template specialization 'boost::msm::back::state_machine<MyFsm_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>::process_event_internal<Event21>' requested here
return process_event_internal(evt,true);
^
prog.cc:20:9: note: in instantiation of function template specialization 'boost::msm::back::state_machine<MyFsm_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>::process_event<Event21>' requested here
fsm.process_event(Event21());//?protect this transition using the same Guard
^
2 errors generated.
Exit Code:
1