From bf23e5392b1f26aefccb7667797834e8a0759f7e Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 12 Mar 2019 11:47:53 +0100 Subject: [PATCH] UnbufferedAsioTlsStream: don't rely on *this in decltype()s for methods' return types --- lib/base/tlsstream.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/base/tlsstream.hpp b/lib/base/tlsstream.hpp index 5f5fc6d73..6156a3d2f 100644 --- a/lib/base/tlsstream.hpp +++ b/lib/base/tlsstream.hpp @@ -122,7 +122,7 @@ public: template inline - auto async_handshake(handshake_type type, Args&&... args) -> decltype(AsioTcpTlsStream::async_handshake(type, std::forward(args)...)) + auto async_handshake(handshake_type type, Args&&... args) -> decltype(((AsioTcpTlsStream*)nullptr)->async_handshake(type, std::forward(args)...)) { BeforeHandshake(type); @@ -131,7 +131,7 @@ public: template inline - auto handshake(handshake_type type, Args&&... args) -> decltype(AsioTcpTlsStream::handshake(type, std::forward(args)...)) + auto handshake(handshake_type type, Args&&... args) -> decltype(((AsioTcpTlsStream*)nullptr)->handshake(type, std::forward(args)...)) { BeforeHandshake(type);