astarte-platform / astarte-platform/astarte-device-sdk-cpp
Missing <list> include in device.hpp
- Dominant language
- C++
- Stars
- 2
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
Depending on the dependence libraries, `/include/astarte_device_sdk/device.hpp` file can throw a compilation error about unknown `std::list` type.
I'm using version 0.9.0.
Change like the diff below fixes the problem:
```
--- astarte-device-sdk-cpp-0.9.0.org/include/astarte_device_sdk/device.hpp 2026-07-30 11:10:53.068692405 +0200
+++ astarte-device-sdk-cpp-0.9.0/include/astarte_device_sdk/device.hpp 2026-07-30 11:11:40.330690213 +0200
@@ -19,6 +19,7 @@
#include
#include
#include
+#include
#include "astarte_device_sdk/data.hpp"
#include "astarte_device_sdk/errors.hpp"
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Open include/astarte_device_sdk/device.hpp and review its standard-library includes, especially the use of std::list. Reproduce or build the C++ SDK with the relevant dependencies to confirm the missing declaration, then verify that the header compiles independently and the existing test suite still passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 86/100