Skip to content

Commit 353b72c

Browse files
committed
Fixing channel_ws hiding warnings.
1 parent bc3075a commit 353b72c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

include/bitcoin/node/channels/channel_ws.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class BCN_API channel_ws
4747

4848
/// Serialize and write websocket message to peer (requires strand).
4949
/// Completion handler is always invoked on the channel strand.
50-
inline void send(system::data_chunk&& message, bool binary,
50+
inline virtual void send(system::data_chunk&& message, bool binary,
5151
network::result_handler&& handler) NOEXCEPT
5252
{
5353
BC_ASSERT(stranded());
@@ -81,6 +81,10 @@ class BCN_API channel_ws
8181
}
8282

8383
protected:
84+
/// Bring virtual base methods into scope to prevent hiding.
85+
using network::channel_http::send;
86+
using network::channel_http::handle_send;
87+
8488
/// Dispatch websocket buffer via derived handlers (override to handle).
8589
/// Override to handle dispatch, must invoke read_request() on complete.
8690
inline void dispatch_ws(const network::http::flat_buffer&,

0 commit comments

Comments
 (0)