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:
Pig 2026-05-25 05:21:35 -04:00 committed by GitHub
parent 6f68a72653
commit b68809ab37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();
};
};