Skip to content

Commit 69d3b5a

Browse files
committed
build: find_if in arm gcc 14.2 hsa to be std::ranges
1 parent f8c2c92 commit 69d3b5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Application/Inc/StateMachine.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class SM {
2020

2121
template <typename... ExternalInjection>
2222
static void triggerEvent(Parent::Event event, Parent::StateMachine &sm, ExternalInjection... args) {
23-
auto it = std::find_if(sm.transitions.begin(), sm.transitions.end(), [&](const auto &t) {
23+
auto it = std::ranges::find_if(sm.transitions.begin(), sm.transitions.end(), [&](const auto &t) {
2424
return std::get<0>(t) == sm.currentState && std::get<1>(t) == event;
2525
});
2626

@@ -33,7 +33,7 @@ class SM {
3333

3434
template <typename... ExternalInjection>
3535
static void setState(Parent::State state, Parent::StateMachine &sm, ExternalInjection... args) {
36-
auto it = std::find_if(sm.entries.begin(), sm.entries.end(),
36+
auto it = std::ranges::find_if(sm.entries.begin(), sm.entries.end(),
3737
[&](const auto &entry) { return std::get<0>(entry) == state; });
3838

3939
if (it != sm.entries.end()) {

0 commit comments

Comments
 (0)