From 0321b2d36eb401d3ed2812422a5f2b8dbb7df41c Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Thu, 19 Jun 2025 18:59:56 -0400 Subject: [PATCH] chore: ArchNetworkBSD:Deps use make_shared now that we dont build on ubuntu 22 anymore --- src/lib/arch/unix/ArchNetworkBSD.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/arch/unix/ArchNetworkBSD.cpp b/src/lib/arch/unix/ArchNetworkBSD.cpp index 47047e553..6ca9fe49f 100644 --- a/src/lib/arch/unix/ArchNetworkBSD.cpp +++ b/src/lib/arch/unix/ArchNetworkBSD.cpp @@ -73,10 +73,7 @@ int ArchNetworkBSD::Deps::poll(struct pollfd *fds, nfds_t nfds, int timeout) std::shared_ptr ArchNetworkBSD::Deps::makePollFD(nfds_t n) { - // C++20 supports std::make_shared(n) but this is not - // implemented on the compiler that comes with Ubuntu 22 and a few other - // distros, so use the manual new and delete until we drop those distros. - return std::shared_ptr(new struct pollfd[n], std::default_delete()); + return std::make_shared(n); } ssize_t ArchNetworkBSD::Deps::read(int fd, void *buf, size_t len)