Skip to content

Commit 997e4ce

Browse files
NeroBurnerFintasticMan
authored andcommitted
Hrs3300: fix includes for std::begin/std::end
Fix for Hrs3300 PR about Atomic HRS reads: #1845 We use `std::begin` and `std::end`, but we don't include one of the headers that define those functions. See https://en.cppreference.com/w/cpp/iterator/begin for a list of headers that define `std::begin` and `std::end`. Starting with GCC 14 this leads to a compilation error presumably because they cleaned up their headers. Fix code by inlcuding `<iterator>`
1 parent ad3bf49 commit 997e4ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/drivers/Hrs3300.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include "drivers/Hrs3300.h"
88
#include <algorithm>
9+
#include <iterator>
910
#include <nrf_gpio.h>
1011

1112
#include <FreeRTOS.h>

0 commit comments

Comments
 (0)