From a154cb399a6fcbd3d4fd19ab46aa2c107128d344 Mon Sep 17 00:00:00 2001 From: Determinant Date: Mon, 17 Jun 2019 16:19:38 -0400 Subject: ... --- src/network.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/network.cpp b/src/network.cpp index 8094ff2..938c105 100644 --- a/src/network.cpp +++ b/src/network.cpp @@ -201,6 +201,10 @@ msgnetwork_conn_t *msgnetwork_conn_new_from_peernetwork_conn(const peernetwork_c return new msgnetwork_conn_t(*conn); } +peernetwork_conn_t *peernetwork_conn_new_from_msgnetwork_conn_unsafe(const msgnetwork_conn_t *conn) { + return new peernetwork_conn_t(salticidae::static_pointer_cast(*conn)); +} + peernetwork_conn_t *peernetwork_conn_copy(const peernetwork_conn_t *self) { return new peernetwork_conn_t(*self); } -- cgit v1.2.3-70-g09d2