From f1d0879444e1ed86e3df4ee273b916d651b36f4f Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 31 May 2025 14:07:05 +0100 Subject: [PATCH] sharedPtr: include missing (#52) Without the change the build on upcoming gcc-16 fails as: [ 12%] Building CXX object CMakeFiles/hyprutils.dir/src/signal/Listener.cpp.o In file included from /build/source/./include/hyprutils/signal/Listener.hpp:5, from /build/source/src/signal/Listener.cpp:1: /build/source/./include/hyprutils/memory/SharedPtr.hpp: In member function 'bool Hyprutils::Memory::CSharedPointer::operator()(const Hyprutils::Memory::CSharedPointer&, const Hyprutils::Memory::CSharedPointer&) const': /build/source/./include/hyprutils/memory/SharedPtr.hpp:116:41: error: 'uintptr_t' does not name a type [-Wtemplate-body] 116 | return reinterpret_cast(lhs.impl_) < reinterpret_cast(rhs.impl_); | ^~~~~~~~~ --- include/hyprutils/memory/SharedPtr.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/hyprutils/memory/SharedPtr.hpp b/include/hyprutils/memory/SharedPtr.hpp index f2003a2..b86dfb2 100644 --- a/include/hyprutils/memory/SharedPtr.hpp +++ b/include/hyprutils/memory/SharedPtr.hpp @@ -1,4 +1,5 @@ #pragma once +#include #include "ImplBase.hpp" @@ -198,4 +199,4 @@ struct std::hash> { std::size_t operator()(const Hyprutils::Memory::CSharedPointer& p) const noexcept { return std::hash{}(p.impl_); } -}; \ No newline at end of file +};