Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hrs3300: fix includes for std::begin/std::end #2128

Merged
merged 1 commit into from
Sep 22, 2024

Conversation

NeroBurner
Copy link
Contributor

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>

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>`
@NeroBurner NeroBurner added the bug Something isn't working label Sep 22, 2024
@NeroBurner NeroBurner added this to the 1.15.0 milestone Sep 22, 2024
@NeroBurner NeroBurner mentioned this pull request Sep 22, 2024
Copy link

Build size and comparison to main:

Section Size Difference
text 374216B -16B
data 948B 0B
bss 63480B 0B

@NeroBurner NeroBurner requested a review from a team September 22, 2024 10:14
@FintasticMan FintasticMan merged commit 997e4ce into main Sep 22, 2024
7 checks passed
@FintasticMan FintasticMan deleted the Hrs3300_fix_includes branch September 22, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants