|
| 1 | +commit 2e8a6ccb414ca79636392604893c79c3b0d00dc4 |
| 2 | +Author: MarcoFalke <*~=`'#}+{/-|&$^ [email protected]> |
| 3 | +Date: Sat Jul 4 09:11:11 2026 +0200 |
| 4 | + |
| 5 | + Add missing <new> includes for std::nothrow |
| 6 | + |
| 7 | + Without the <new> include, compilation may fail: |
| 8 | + |
| 9 | + ``` |
| 10 | + src/polling_util.hpp:28:30: error: no member named 'nothrow' in namespace 'std' |
| 11 | + 28 | _buf = new (std::nothrow) T[nitems_]; |
| 12 | + | ^~~~~~~ |
| 13 | + ``` |
| 14 | + |
| 15 | +diff --git a/src/norm_engine.cpp b/src/norm_engine.cpp |
| 16 | +index 1e3ae179..02483f0b 100644 |
| 17 | +--- a/src/norm_engine.cpp |
| 18 | ++++ b/src/norm_engine.cpp |
| 19 | +@@ -1,6 +1,7 @@ |
| 20 | + |
| 21 | + #include "precompiled.hpp" |
| 22 | + |
| 23 | ++#include <new> |
| 24 | + #include "platform.hpp" |
| 25 | + |
| 26 | + #if defined ZMQ_HAVE_NORM |
| 27 | +diff --git a/src/polling_util.hpp b/src/polling_util.hpp |
| 28 | +index 13a4911f..3536be9a 100644 |
| 29 | +--- a/src/polling_util.hpp |
| 30 | ++++ b/src/polling_util.hpp |
| 31 | +@@ -4,6 +4,7 @@ |
| 32 | + #define __ZMQ_SOCKET_POLLING_UTIL_HPP_INCLUDED__ |
| 33 | + |
| 34 | + #include <stdlib.h> |
| 35 | ++#include <new> |
| 36 | + #include <vector> |
| 37 | + |
| 38 | + #if defined ZMQ_HAVE_WINDOWS |
| 39 | +diff --git a/src/proxy.cpp b/src/proxy.cpp |
| 40 | +index 78d6ba61..85e4db4a 100644 |
| 41 | +--- a/src/proxy.cpp |
| 42 | ++++ b/src/proxy.cpp |
| 43 | +@@ -3,6 +3,7 @@ |
| 44 | + #include "precompiled.hpp" |
| 45 | + |
| 46 | + #include <stddef.h> |
| 47 | ++#include <new> |
| 48 | + #include "poller.hpp" |
| 49 | + #include "proxy.hpp" |
| 50 | + #include "likely.hpp" |
| 51 | +diff --git a/src/reaper.cpp b/src/reaper.cpp |
| 52 | +index 4361a7e9..1484a926 100644 |
| 53 | +--- a/src/reaper.cpp |
| 54 | ++++ b/src/reaper.cpp |
| 55 | +@@ -2,6 +2,7 @@ |
| 56 | + |
| 57 | + #include "precompiled.hpp" |
| 58 | + #include "macros.hpp" |
| 59 | ++#include <new> |
| 60 | + #include "reaper.hpp" |
| 61 | + #include "socket_base.hpp" |
| 62 | + #include "err.hpp" |
| 63 | +diff --git a/src/session_base.cpp b/src/session_base.cpp |
| 64 | +index 5a81b076..618443d5 100644 |
| 65 | +--- a/src/session_base.cpp |
| 66 | ++++ b/src/session_base.cpp |
| 67 | +@@ -1,6 +1,7 @@ |
| 68 | + /* SPDX-License-Identifier: MPL-2.0 */ |
| 69 | + |
| 70 | + #include "precompiled.hpp" |
| 71 | ++#include <new> |
| 72 | + #include "macros.hpp" |
| 73 | + #include "session_base.hpp" |
| 74 | + #include "i_engine.hpp" |
| 75 | +diff --git a/src/socket_poller.cpp b/src/socket_poller.cpp |
| 76 | +index b5c330e8..3feb452e 100644 |
| 77 | +--- a/src/socket_poller.cpp |
| 78 | ++++ b/src/socket_poller.cpp |
| 79 | +@@ -7,6 +7,7 @@ |
| 80 | + #include "macros.hpp" |
| 81 | + |
| 82 | + #include <limits.h> |
| 83 | ++#include <new> |
| 84 | + |
| 85 | + static bool is_thread_safe (const zmq::socket_base_t &socket_) |
| 86 | + { |
| 87 | +diff --git a/src/stream_connecter_base.cpp b/src/stream_connecter_base.cpp |
| 88 | +index 8dd9a6d6..6b733b4d 100644 |
| 89 | +--- a/src/stream_connecter_base.cpp |
| 90 | ++++ b/src/stream_connecter_base.cpp |
| 91 | +@@ -15,6 +15,7 @@ |
| 92 | + #endif |
| 93 | + |
| 94 | + #include <limits> |
| 95 | ++#include <new> |
| 96 | + |
| 97 | + zmq::stream_connecter_base_t::stream_connecter_base_t ( |
| 98 | + zmq::io_thread_t *io_thread_, |
| 99 | +diff --git a/src/stream_listener_base.cpp b/src/stream_listener_base.cpp |
| 100 | +index 350093ad..b4e02027 100644 |
| 101 | +--- a/src/stream_listener_base.cpp |
| 102 | ++++ b/src/stream_listener_base.cpp |
| 103 | +@@ -13,6 +13,8 @@ |
| 104 | + #include <winsock2.h> |
| 105 | + #endif |
| 106 | + |
| 107 | ++#include <new> |
| 108 | ++ |
| 109 | + zmq::stream_listener_base_t::stream_listener_base_t ( |
| 110 | + zmq::io_thread_t *io_thread_, |
| 111 | + zmq::socket_base_t *socket_, |
| 112 | +diff --git a/src/ws_engine.cpp b/src/ws_engine.cpp |
| 113 | +index 9eec0d92..55590cdc 100644 |
| 114 | +--- a/src/ws_engine.cpp |
| 115 | ++++ b/src/ws_engine.cpp |
| 116 | +@@ -26,6 +26,7 @@ |
| 117 | + #endif |
| 118 | + |
| 119 | + #include <cstring> |
| 120 | ++#include <new> |
| 121 | + |
| 122 | + #include "compat.hpp" |
| 123 | + #include "tcp.hpp" |
0 commit comments