aboutsummaryrefslogtreecommitdiff
path: root/net/cppserver/files/patch-include_server_asio_memory.h
blob: 5c3010a2edafbb2af1ece1218c6a56e8f86597d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- include/server/asio/memory.h.orig	2026-05-27 15:25:30 UTC
+++ include/server/asio/memory.h
@@ -93,12 +93,13 @@ class HandlerAllocator (public)
     HandlerAllocator(HandlerAllocator&&) noexcept = default;
     ~HandlerAllocator() noexcept = default;
 
+    // Fix "overload resolution selected deleted operator '='" with recent clang
     template <typename U>
-    HandlerAllocator& operator=(const HandlerAllocator<U>& alloc) noexcept
-    { _storage = alloc._storage; return *this; }
-    HandlerAllocator& operator=(const HandlerAllocator& alloc) noexcept
-    { _storage = alloc._storage; return *this; }
-    HandlerAllocator& operator=(HandlerAllocator&&) noexcept = default;
+    HandlerAllocator& operator=(const HandlerAllocator<U>&) noexcept
+    { return *this; }
+    HandlerAllocator& operator=(const HandlerAllocator&) noexcept
+    { return *this; }
+    HandlerAllocator& operator=(HandlerAllocator&&) noexcept = delete;
 
     //! Allocate a block of storage suitable to contain the given count of elements
     /*!