Skip to content

Commit 8e6c4ad

Browse files
committed
#45: Fixed mode_handler tests with clang<16
1 parent f01fb29 commit 8e6c4ad

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Tests/LowLevel/Application/mode_handler.cpp

+7-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,13 @@ TEST(TEST_NAME, modeselection) {
479479
{{true, true, true, true, true}, MODE_REMOTE},
480480
};
481481

482-
for (auto [availability_value, expected_mode] : decisionTable) {
482+
for (auto row : decisionTable) {
483+
/*
484+
* Should be a structure binding but clang < 16 does not support capturing of structure bindings
485+
* as those are by definition no variables...
486+
*/
487+
auto availability_value = row.first;
488+
auto expected_mode = row.second;
483489
mode_handler_init();
484490
imuHandle.overrideFunc<imu_get_latest_data>([availability_value]() {
485491
imu_data_t res{};

0 commit comments

Comments
 (0)