fix private for fsm
Some checks failed
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Successful in 1m28s
linux-arm-gcc / linux-gcc-armhf (push) Successful in 1m37s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 1m34s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 1m45s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 1m53s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 2m1s
Some checks failed
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Successful in 1m28s
linux-arm-gcc / linux-gcc-armhf (push) Successful in 1m37s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 1m34s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 1m45s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 1m53s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 2m1s
This commit is contained in:
parent
4fc8fe0f09
commit
b0cd2d363b
@ -1,3 +1,7 @@
|
||||
#ifndef SLED_SLED_NONSTD_FSM_H
|
||||
#define SLED_SLED_NONSTD_FSM_H
|
||||
|
||||
#pragma once
|
||||
/*
|
||||
* Copyright (c) 2015-2021 Thomas Kemmer
|
||||
*
|
||||
@ -22,9 +26,6 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef FSMLITE_FSM_H
|
||||
#define FSMLITE_FSM_H
|
||||
|
||||
#include <cstddef>
|
||||
#include <type_traits>
|
||||
|
||||
@ -32,9 +33,7 @@
|
||||
#include <stdexcept>
|
||||
#endif
|
||||
|
||||
namespace fsmlite {
|
||||
template<typename T, typename State>
|
||||
class Fsm;
|
||||
namespace sled {
|
||||
|
||||
namespace detail {
|
||||
|
||||
@ -452,13 +451,7 @@ private:
|
||||
};
|
||||
#endif
|
||||
};
|
||||
}// namespace fsmlite
|
||||
|
||||
namespace sled {
|
||||
template<typename T, typename State = int>
|
||||
class Fsm : public fsmlite::Fsm<T, State> {
|
||||
public:
|
||||
Fsm(State init_state = State()) : fsmlite::Fsm<T, State>(init_state) {}
|
||||
};
|
||||
}// namespace sled
|
||||
#endif
|
||||
|
||||
#endif// SLED_SLED_NONSTD_FSM_H
|
||||
|
@ -39,6 +39,7 @@ private:
|
||||
void OnReset(const ResetEvent &) {}
|
||||
|
||||
public:
|
||||
friend class sled::Fsm<FSMTest, State>;
|
||||
using TransitionTable
|
||||
= table<row<State::kIdle, StartEvent, State::kStarted, &FSMTest::OnStart, &FSMTest::StartCheck>,
|
||||
row<State::kStarted, StopEvent, State::kEnd, &FSMTest::OnStop>,
|
||||
|
Loading…
x
Reference in New Issue
Block a user