mirror of
https://github.com/boostorg/msm.git
synced 2026-07-21 13:23:45 +00:00
fix(backmp11): remove extra semicolons
This commit is contained in:
committed by
Christian Granzin
parent
1756026554
commit
075e69e33c
@@ -277,13 +277,13 @@ class basic_polymorphic
|
||||
{
|
||||
return basic_polymorphic{std::in_place_type<U>,
|
||||
std::forward<Args>(args)...};
|
||||
};
|
||||
}
|
||||
|
||||
template <typename U>
|
||||
static basic_polymorphic make(const U& obj)
|
||||
{
|
||||
return basic_polymorphic{obj};
|
||||
};
|
||||
}
|
||||
|
||||
T* get() const noexcept
|
||||
{
|
||||
|
||||
@@ -59,13 +59,13 @@ struct MachineBase_ : public state_machine_def<MachineBase_<T>>
|
||||
{
|
||||
Context& context = get_context(fsm);
|
||||
context.machine_entries++;
|
||||
};
|
||||
}
|
||||
|
||||
template <typename Event, typename Fsm>
|
||||
void on_exit(const Event& /*event*/, Fsm& fsm)
|
||||
{
|
||||
get_context(fsm).machine_exits++;
|
||||
};
|
||||
}
|
||||
|
||||
using initial_state = Default;
|
||||
};
|
||||
|
||||
@@ -96,7 +96,7 @@ struct hierarchical_machine
|
||||
static_assert(std::is_same_v<Fsm,RootSm>);
|
||||
}
|
||||
fsm.get_root_sm().machine_entries++;
|
||||
};
|
||||
}
|
||||
|
||||
template <typename Event, typename Fsm>
|
||||
void on_exit(const Event& /*event*/, Fsm& fsm)
|
||||
@@ -106,7 +106,7 @@ struct hierarchical_machine
|
||||
static_assert(std::is_same_v<Fsm,RootSm>);
|
||||
}
|
||||
fsm.get_root_sm().machine_exits++;
|
||||
};
|
||||
}
|
||||
|
||||
using initial_state = Default;
|
||||
};
|
||||
@@ -128,7 +128,7 @@ struct hierarchical_machine
|
||||
// static_assert(std::is_same_v<Fsm,MiddleMachine>);
|
||||
}
|
||||
fsm.get_root_sm().machine_entries++;
|
||||
};
|
||||
}
|
||||
|
||||
template <typename Event, typename Fsm>
|
||||
void on_exit(const Event& /*event*/, Fsm& fsm)
|
||||
@@ -142,7 +142,7 @@ struct hierarchical_machine
|
||||
// static_assert(std::is_same_v<Fsm,MiddleMachine>);
|
||||
}
|
||||
fsm.get_root_sm().machine_exits++;
|
||||
};
|
||||
}
|
||||
};
|
||||
using LowerMachine = state_machine<LowerMachine_, SmConfig>;
|
||||
|
||||
|
||||
@@ -82,13 +82,13 @@ struct StateMachine_ : public state_machine_def<StateMachine_>
|
||||
void on_entry(const Event& /*event*/, Fsm& fsm)
|
||||
{
|
||||
fsm.entry_calls++;
|
||||
};
|
||||
}
|
||||
|
||||
template <typename Event, typename Fsm>
|
||||
void on_exit(const Event& /*event*/, Fsm& fsm)
|
||||
{
|
||||
fsm.exit_calls++;
|
||||
};
|
||||
}
|
||||
|
||||
using initial_state = MyState;
|
||||
using transition_table = mp11::mp_list<
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ if(BOOST_MSM_TEST_ONLY_BACKMP11)
|
||||
add_compile_definitions("BOOST_MSM_TEST_ONLY_BACKMP11")
|
||||
endif()
|
||||
if(BOOST_MSM_TEST_STRICT)
|
||||
add_compile_options(-Wall -Wextra -Werror -Wno-language-extension-token)
|
||||
add_compile_options(-Wall -Wpedantic -Wextra -Werror -Wno-language-extension-token)
|
||||
endif()
|
||||
if(BOOST_MSM_TEST_ENABLE_SANITIZERS)
|
||||
add_compile_options(-fsanitize=address -fno-omit-frame-pointer)
|
||||
|
||||
Reference in New Issue
Block a user