diff --git a/include/hfsm2/detail/shared/type_list.hpp b/include/hfsm2/detail/shared/type_list.hpp index 2a523e6..a5f0f98 100644 --- a/include/hfsm2/detail/shared/type_list.hpp +++ b/include/hfsm2/detail/shared/type_list.hpp @@ -25,17 +25,17 @@ using Prepend = typename PrependT::Type; //------------------------------------------------------------------------------ -template +template struct LesserT; -template +template struct LesserT { using Type = typename std::conditional<(I < H), Prepend::Type>, typename LesserT::Type>::type; }; -template +template struct LesserT { using Type = TL_<>; }; @@ -45,17 +45,17 @@ using SplitL = typename LesserT::Type; //------------------------------------------------------------------------------ -template +template struct GreaterT; -template +template struct GreaterT { using Type = typename std::conditional<(I < H), typename GreaterT::Type, TL_>::type; }; -template +template struct GreaterT { using Type = TL_<>; }; @@ -109,7 +109,7 @@ using IndexSequenceFor = MakeIndexSequence; template struct IndexedTypeList_EntryT {}; -template +template struct IndexedTypeList_EntryN : IndexedTypeList_EntryT {}; @@ -123,7 +123,7 @@ template struct IndexedTypeList_Impl, Ts...> : IndexedTypeList_EntryN... { - template + template static constexpr LongIndex select(IndexedTypeList_EntryN) { return (LongIndex) N; } }; diff --git a/include/hfsm2/machine.hpp b/include/hfsm2/machine.hpp index 2ecbefd..537857c 100644 --- a/include/hfsm2/machine.hpp +++ b/include/hfsm2/machine.hpp @@ -1687,17 +1687,17 @@ using Prepend = typename PrependT::Type; //------------------------------------------------------------------------------ -template +template struct LesserT; -template +template struct LesserT { using Type = typename std::conditional<(I < H), Prepend::Type>, typename LesserT::Type>::type; }; -template +template struct LesserT { using Type = TL_<>; }; @@ -1707,17 +1707,17 @@ using SplitL = typename LesserT::Type; //------------------------------------------------------------------------------ -template +template struct GreaterT; -template +template struct GreaterT { using Type = typename std::conditional<(I < H), typename GreaterT::Type, TL_>::type; }; -template +template struct GreaterT { using Type = TL_<>; }; @@ -1771,7 +1771,7 @@ using IndexSequenceFor = MakeIndexSequence; template struct IndexedTypeList_EntryT {}; -template +template struct IndexedTypeList_EntryN : IndexedTypeList_EntryT {}; @@ -1785,7 +1785,7 @@ template struct IndexedTypeList_Impl, Ts...> : IndexedTypeList_EntryN... { - template + template static constexpr LongIndex select(IndexedTypeList_EntryN) { return (LongIndex) N; } }; diff --git a/test/test_debug.cpp b/test/test_debug.cpp index 2582eb8..4952203 100644 --- a/test/test_debug.cpp +++ b/test/test_debug.cpp @@ -15,7 +15,7 @@ void assertStructure(const FSM::Instance::Structure& structure, const StructureReference& reference) { - const auto count = std::max((size_t) structure.count(), reference.size()); + const auto count = std::max((std::size_t) structure.count(), reference.size()); for (uint16_t i = 0; i < count; ++i) { REQUIRE(i < structure.count()); @@ -42,7 +42,7 @@ void assertActivity(const FSM::Instance::ActivityHistory& activity, const ActivityReference& reference) { - const auto count = std::max((size_t) activity.count(), reference.size()); + const auto count = std::max((std::size_t) activity.count(), reference.size()); for (uint16_t i = 0; i < count; ++i) { REQUIRE(i < activity.count());