From b68809ab37c00676db1dcfe734d2548260ea658f Mon Sep 17 00:00:00 2001 From: Pig Date: Mon, 25 May 2026 05:21:35 -0400 Subject: [PATCH] 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> deLogo(); | ^~~~ /root/hyprsysteminfo/src/utils/SystemInfo.hpp:23:29: error: expected expression 23 | std::optional> deLogo(); | ^ /root/hyprsysteminfo/src/utils/SystemInfo.hpp:23:43: error: expected unqualified-id 23 | std::optional> 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> Info::deLogo() { | ^~~~~~ 1 warning and 4 errors generated. ``` --- src/utils/SystemInfo.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/SystemInfo.hpp b/src/utils/SystemInfo.hpp index 16bfa6c..e931419 100644 --- a/src/utils/SystemInfo.hpp +++ b/src/utils/SystemInfo.hpp @@ -5,6 +5,7 @@ #include #include #include +#include namespace Info { std::expected getDistroLogoName(); @@ -21,4 +22,4 @@ namespace Info { std::string mem(); std::string uptime(); std::optional> deLogo(); -}; \ No newline at end of file +};