Skip to content

SmallVector: Add missing include and std prefix#39

Merged
alt-graph merged 1 commit intomainfrom
bugfix/fix-compilation-of-smallvector
Oct 20, 2025
Merged

SmallVector: Add missing include and std prefix#39
alt-graph merged 1 commit intomainfrom
bugfix/fix-compilation-of-smallvector

Conversation

@soerengrunewald
Copy link
Copy Markdown
Contributor

@soerengrunewald soerengrunewald commented Oct 17, 2025

Why

The compilation fails with:

In file included from doocs-clientlib/src/EqAdr.cc:29:
subprojects/gul17/include/gul17/SmallVector.h:277:22: error: 'uint32_t' does not name a type [-Wtemplate-body]
277 | using SizeType = uint32_t;
| ^~~~~~~~
subprojects/gul17/include/gul17/SmallVector.h:32:1: note: 'uint32_t' is defined in header ''; this is probably fixable by adding '#include '
---8<---

[Why]
The compilation fails with:
> In file included from doocs-clientlib/src/EqAdr.cc:29:
> subprojects/gul17/include/gul17/SmallVector.h:277:22: error: 'uint32_t' does not name a type [-Wtemplate-body]
>   277 |     using SizeType = uint32_t;
>       |                      ^~~~~~~~
> subprojects/gul17/include/gul17/SmallVector.h:32:1: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
> ---8<---

Signed-off-by: Soeren Grunewald <soeren.grunewald@desy.de>
@soerengrunewald soerengrunewald added the bug Something isn't working label Oct 17, 2025
Copy link
Copy Markdown
Member

@alt-graph alt-graph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, new standard library, new bugs... :)
Thanks, @soerengrunewald!

@alt-graph alt-graph merged commit b451d3b into main Oct 20, 2025
3 checks passed
@alt-graph alt-graph deleted the bugfix/fix-compilation-of-smallvector branch October 20, 2025 14:53
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.

2 participants