mirror of
https://github.com/hyprwm/hyprsysteminfo.git
synced 2026-05-27 20:38:11 +02:00
SystemInfo.hpp: Fix missing inclusion of std::span (#29)
As observed on Clang 22.6:
```
In file included from /root/hyprsysteminfo/src/utils/SystemInfo.cpp:1:
/root/hyprsysteminfo/src/utils/SystemInfo.hpp:23:24: error: no member named 'span' in namespace 'std'
23 | std::optional<std::span<const uint8_t>> deLogo();
| ^~~~
/root/hyprsysteminfo/src/utils/SystemInfo.hpp:23:29: error: expected expression
23 | std::optional<std::span<const uint8_t>> deLogo();
| ^
/root/hyprsysteminfo/src/utils/SystemInfo.hpp:23:43: error: expected unqualified-id
23 | std::optional<std::span<const uint8_t>> deLogo();
| ^
In file included from /root/hyprsysteminfo/src/utils/SystemInfo.cpp:13:
/root/hyprsysteminfo/src/utils/../icons/Icons.hpp:7:2: warning: #embed is a Clang extension [-Wc23-extensions]
7 | #embed "../../resource/hyprlandlogo.svg"
| ^
/root/hyprsysteminfo/src/utils/SystemInfo.cpp:351:47: error: out-of-line definition of 'deLogo' does not match any declaration in namespace 'Info'
351 | std::optional<std::span<const uint8_t>> Info::deLogo() {
| ^~~~~~
1 warning and 4 errors generated.
```
This commit is contained in:
parent
6f68a72653
commit
b68809ab37
1 changed files with 2 additions and 1 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include <optional>
|
||||
#include <filesystem>
|
||||
#include <vector>
|
||||
#include <span>
|
||||
|
||||
namespace Info {
|
||||
std::expected<std::string, std::string> getDistroLogoName();
|
||||
|
|
@ -21,4 +22,4 @@ namespace Info {
|
|||
std::string mem();
|
||||
std::string uptime();
|
||||
std::optional<std::span<const uint8_t>> deLogo();
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue