Skip to content

Commit 647e610

Browse files
committed
Move close_socket() out of virtual overrides section in reactor_acceptor
close_socket() is not virtual in the acceptor implementation bases (tcp_acceptor::implementation, local_stream_acceptor::implementation). It was misleadingly placed inside a "Virtual method overrides" comment block. Move it out and document it as a non-virtual service helper.
1 parent 877e986 commit 647e610

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

include/boost/corosio/native/detail/reactor/reactor_acceptor.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,11 @@ class reactor_acceptor
143143
return svc_;
144144
}
145145

146-
// --- Virtual method overrides ---
147-
148146
void cancel() noexcept override { do_cancel(); }
149147

148+
/// Close the acceptor (non-virtual, called by the service).
150149
void close_socket() noexcept { do_close_socket(); }
151150

152-
// --- End virtual overrides ---
153-
154151
/** Cancel a single pending operation.
155152
156153
Claims the operation from the read_op descriptor slot

0 commit comments

Comments
 (0)