mirror of
https://github.com/ETLCPP/etl.git
synced 2026-10-28 18:07:10 +08:00
Attempt to fix Github CI
GCC 11 incompatibility
This commit is contained in:
parent
8f94ef619a
commit
b734df629b
@ -60,7 +60,9 @@ SOFTWARE.
|
||||
#include "message_router.h"
|
||||
#include "integral_limits.h"
|
||||
#include "largest.h"
|
||||
#include "tuple.h"
|
||||
#if ETL_USING_CPP11
|
||||
#include "tuple.h"
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@ -223,6 +225,7 @@ namespace etl
|
||||
|
||||
class ifsm_state;
|
||||
|
||||
#if ETL_USING_CPP11
|
||||
//***************************************************************************
|
||||
/// A class to store FSM states.
|
||||
//***************************************************************************
|
||||
@ -279,6 +282,7 @@ namespace etl
|
||||
/// Pointers to the states.
|
||||
etl::ifsm_state* states[sizeof...(TStates)]{ &etl::get<TStates>(storage)... };
|
||||
};
|
||||
#endif
|
||||
|
||||
//***************************************************************************
|
||||
/// Interface class for FSM states.
|
||||
@ -450,6 +454,7 @@ namespace etl
|
||||
}
|
||||
}
|
||||
|
||||
#if ETL_USING_CPP11
|
||||
//*******************************************
|
||||
/// Set the states for the FSM
|
||||
/// From an etl::fsm_state_pack.
|
||||
@ -465,6 +470,7 @@ namespace etl
|
||||
state_list[i]->set_fsm_context(*this);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
//*******************************************
|
||||
/// Starts the FSM.
|
||||
|
||||
@ -476,6 +476,7 @@ namespace etl
|
||||
}
|
||||
}
|
||||
|
||||
#if ETL_USING_CPP11
|
||||
//*******************************************
|
||||
/// Set the states for the FSM
|
||||
/// From an etl::fsm_state_pack.
|
||||
@ -491,6 +492,7 @@ namespace etl
|
||||
state_list[i]->set_fsm_context(*this);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
//*******************************************
|
||||
/// Starts the FSM.
|
||||
|
||||
@ -96,7 +96,18 @@ namespace
|
||||
}
|
||||
};
|
||||
|
||||
#if !(defined(ETL_COMPILER_GCC) && (ETL_COMPILER_FULL_VERSION <= 1100))
|
||||
#if defined(ETL_COMPILER_GCC)
|
||||
#if (ETL_COMPILER_FULL_VERSION <= 1100)
|
||||
#define ETL_ENABLE_DELEGATE_OBSERVABLE_CREATE_OBSERVABLE 0
|
||||
#else
|
||||
#define ETL_ENABLE_DELEGATE_OBSERVABLE_CREATE_OBSERVABLE 1
|
||||
#endif
|
||||
#else
|
||||
#define ETL_ENABLE_DELEGATE_OBSERVABLE_CREATE_OBSERVABLE 1
|
||||
#endif
|
||||
|
||||
|
||||
#if ETL_ENABLE_DELEGATE_OBSERVABLE_CREATE_OBSERVABLE
|
||||
//*************************************************************************
|
||||
ETL_CONSTEXPR14 Observable CreateObservable()
|
||||
{
|
||||
@ -170,7 +181,7 @@ namespace
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !(defined(ETL_COMPILER_GCC) && (ETL_COMPILER_FULL_VERSION <= 1100))
|
||||
#if ETL_ENABLE_DELEGATE_OBSERVABLE_CREATE_OBSERVABLE
|
||||
//*************************************************************************
|
||||
TEST_FIXTURE(SetupFixture, test_constexpr_delegate_observable_from_function)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user